ansi_to_html_shard
ansi_to_html
Converts ANSI text to HTML output.
Very similar to ruby gem with same name and bcat ANSI code. Much faster (x10)
Installation
-
Add the dependency to your
shard.yml
:dependencies: ansi_to_html: github: blitline-dev/ansi_to_html_shard
-
Run
shards install
Usage
require "ansi_to_html"
To use in your code simply:
ansi_converter = AnsiToHtml.new
html = ansi_converter.to_html("colors: \x1b[30mblack\x1b[37mwhite")
Notes
Basic support for old terminals. Xterm support 256 Colors Support
Contributing
- Fork it (https://github.com/blitline-dev/ansi_to_html_shard/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Blitline Developers - creator and maintainer
Repository
ansi_to_html_shard
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- about 2 years ago
- August 23, 2022
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 03:10:13 GMT
Languages