{"_id":"ansi-to-html-umd","_rev":"4-0fd692c88835aafce7dc133c932421cf","name":"ansi-to-html-umd","description":"Convert ansi escaped text streams to html.","dist-tags":{"latest":"0.4.2"},"versions":{"0.4.1":{"name":"ansi-to-html-umd","version":"0.4.1","description":"Convert ansi escaped text streams to html.","engines":{"node":"*"},"main":"lib/ansi_to_html.umd.js","scripts":{"test":"grunt simplemocha"},"repository":{"type":"git","url":"git+https://github.com/rburns/ansi-to-html.git"},"bugs":{"url":"https://github.com/rburns/ansi-to-html/issues"},"keywords":["ansi","html"],"author":{"name":"Rob Burns","email":"rburns@paiges.net","url":"http://rburns.paiges.net/"},"contributors":[{"name":"Michael","email":"michael@riesd.com"},{"name":"Thorsten Kohnhorst","email":"monsterkodi@gmx.net"},{"name":"Yoram Grahame","email":"yoz@yoz.com"},{"name":"Bryan Ross","email":"bryan@rossipedia.com"}],"license":"MIT","devDependencies":{"chai":"~3.5.0","grunt":"~0.4.5","grunt-contrib-coffee":"^0.13.0","grunt-contrib-watch":"~0.6.1","grunt-simple-mocha":"~0.4.1","grunt-webpack":"^1.0.11","json-loader":"^0.5.4","webpack":"^1.12.14","webpack-dev-server":"^1.14.1"},"dependencies":{"entities":"^1.1.1","karg":"^1.0.4"},"gitHead":"a315522baaf69ab92c730449ced06d7ddb41a050","homepage":"https://github.com/rburns/ansi-to-html#readme","_id":"ansi-to-html-umd@0.4.1","_shasum":"90fce8bd779ea129593b5dc97e524741fc14f562","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"rossipedia","email":"bryan@rossipedia.com"},"dist":{"shasum":"90fce8bd779ea129593b5dc97e524741fc14f562","tarball":"https://registry.npmjs.org/ansi-to-html-umd/-/ansi-to-html-umd-0.4.1.tgz","integrity":"sha512-GrJcfUK2I81oHED3ShdxLfpWx7PLhqoydifwxffFai5LIHJISf24wQiN39xZsOoGzgOJfrPD+pOmckyYjGX+6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxzQS5f8oYoZmD/FhbHT8QN04j2clZrVbHQ9/P1JdpyQIgazbwVcMl5ZIIhc2aps6F1EGgzBbS6A3CioEh/sq8SI0="}]},"maintainers":[{"name":"rossipedia","email":"bryan@rossipedia.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/ansi-to-html-umd-0.4.1.tgz_1456729564448_0.25865637022070587"}},"0.4.2":{"name":"ansi-to-html-umd","version":"0.4.2","description":"Convert ansi escaped text streams to html.","engines":{"node":"*"},"main":"lib/ansi_to_html.umd.js","scripts":{"test":"grunt simplemocha"},"repository":{"type":"git","url":"git+https://github.com/rburns/ansi-to-html.git"},"bugs":{"url":"https://github.com/rburns/ansi-to-html/issues"},"keywords":["ansi","html"],"author":{"name":"Rob Burns","email":"rburns@paiges.net","url":"http://rburns.paiges.net/"},"contributors":[{"name":"Michael","email":"michael@riesd.com"},{"name":"Thorsten Kohnhorst","email":"monsterkodi@gmx.net"},{"name":"Yoram Grahame","email":"yoz@yoz.com"},{"name":"Bryan Ross","email":"bryan@rossipedia.com"}],"license":"MIT","devDependencies":{"chai":"~3.5.0","entities":"^1.1.1","grunt":"~0.4.5","grunt-contrib-coffee":"^0.13.0","grunt-contrib-watch":"~0.6.1","grunt-simple-mocha":"~0.4.1","grunt-webpack":"^1.0.11","json-loader":"^0.5.4","webpack":"^1.12.14","webpack-dev-server":"^1.14.1"},"gitHead":"c205d5753dfe6bc6184142685be9e185ae89a9be","homepage":"https://github.com/rburns/ansi-to-html#readme","_id":"ansi-to-html-umd@0.4.2","_shasum":"c1da2e5d5c58c6ce1461b8aa907826a56ece2495","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"rossipedia","email":"bryan@rossipedia.com"},"dist":{"shasum":"c1da2e5d5c58c6ce1461b8aa907826a56ece2495","tarball":"https://registry.npmjs.org/ansi-to-html-umd/-/ansi-to-html-umd-0.4.2.tgz","integrity":"sha512-1aGaoN94/RisYTvboCAN2hxSyqVwPRmv9raqPHsLCF2qPFtkBpBfOPA0xlvyjdACznAq0JbIzZzu72e801/B9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/QkZyIcaRbWxIHg583XAHObuP1Unx4yZO6dOVciJz+AiA8LDBkoBrAhmY+uEEH2SaKlal5hWUpLibkEdyFcvjWuA=="}]},"maintainers":[{"name":"rossipedia","email":"bryan@rossipedia.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/ansi-to-html-umd-0.4.2.tgz_1456784862035_0.6613240039441735"}}},"readme":"## Ansi to Html\n\n![](https://img.shields.io/npm/v/ansi-to-html.svg) ![](https://img.shields.io/npm/dm/ansi-to-html.svg) ![](https://img.shields.io/travis/rburns/ansi-to-html.svg)\n\nThis is a port of the ansi to html converter from [bcat](https://github.com/rtomayko/bcat/blob/master/lib/bcat/ansi.rb) to Javascript.\n\nIt has a few additions:\n\n* The API has been altered to accept options in the constructor, and input in <code>toHtml()</code>.\n* ANSI codes for setting the foreground or background color to default are handled\n* the 'erase in line' escape code (\\x1b[K) is dropped from the output.\n\n## Installation\n\n\tnpm install ansi-to-html\n\n## Usage\n\n\tvar Convert = require('ansi-to-html');\n\tvar convert = new Convert();\n\n\tconsole.log(convert.toHtml('\\x1b[30mblack\\x1b[37mwhite'));\n\n\t/*\n\t\tprints:\n\t\t<span style=\"color:#000\">black<span style=\"color:#AAA\">white</span></span>\n\t*/\n\n## Command line usage\n\nProcess a file:\n\n```bash\nansi-to-html the_filename\n```\n\nFrom STDIN:\n\n```bash\ngit log | ansi-to-html\n```\n\nWhen using ansi-to-html from the command line the stream option is set to `true`. Other options can\nbe provided. See `ansi-to-html -h` for more detail.\n\n## Options\n\nOptions can be be passed to the constructor to customize behaviour.\n\n**fg** <code>CSS color values</code> The default foreground color used when reset color codes are encountered.\n\n**bg** <code>CSS color values</code> The default background color used when reset color codes are encountered.\n\n**newline** <code>true or false</code> Convert newline characters to <code>&lt;br/&gt;</code>.\n\n**escapeXML** <code>true or false</code> Generate HTML/XML entities.\n\n**stream** <code>true or false</code> save style state across invocations of toHtml().\n\n### Default options\n\n```coffee\nfg: '#FFF'\nbg: '#000'\nnewline: false\nescapeXML: false\nstream: false\n```\n\n## Development\n\n[![](http://issuestats.com/github/rburns/ansi-to-html/badge/issue?style=flat)](http://issuestats.com/github/rburns/ansi-to-html)\n[![](http://issuestats.com/github/rburns/ansi-to-html/badge/pr?style=flat)](http://issuestats.com/github/rburns/ansi-to-html)\n\nOnce you have the git repository cloned, install the dependencies:\n\n\tcd ansi-to-html\n\tnpm install\n\nIf you don't have it already, install the grunt command-line tool:\n\n\tnpm install -g grunt-cli\n\nBuild and test\n\n\tgrunt\n\nAll the time\n\n\tgrunt watch\n\nOr separately\n\n\tgrunt coffee\n\tgrunt simplemocha  # or npm test\n","maintainers":[{"name":"rossipedia","email":"bryan@rossipedia.com"}],"time":{"modified":"2022-06-13T03:05:28.834Z","created":"2016-02-29T07:06:07.320Z","0.4.1":"2016-02-29T07:06:07.320Z","0.4.2":"2016-02-29T22:27:45.324Z"},"homepage":"https://github.com/rburns/ansi-to-html#readme","keywords":["ansi","html"],"repository":{"type":"git","url":"git+https://github.com/rburns/ansi-to-html.git"},"contributors":[{"name":"Michael","email":"michael@riesd.com"},{"name":"Thorsten Kohnhorst","email":"monsterkodi@gmx.net"},{"name":"Yoram Grahame","email":"yoz@yoz.com"},{"name":"Bryan Ross","email":"bryan@rossipedia.com"}],"author":{"name":"Rob Burns","email":"rburns@paiges.net","url":"http://rburns.paiges.net/"},"bugs":{"url":"https://github.com/rburns/ansi-to-html/issues"},"license":"MIT","readmeFilename":"README.md"}