{"bin":{"ansi2html":"./bin/ansi2html"},"dist":{"shasum":"bb8800461b440af00b91bf3d7366a5e0b8473ba8","tarball":"https://registry.npmjs.org/ansi2html/-/ansi2html-0.0.1.tgz","integrity":"sha512-M5dw9xdPrRLkLnDjle8WkXCdzJtFAhoHPemopSt7CP9/a86pRhycK9gKHIBDxt2UW3E9pqvafOM6WgFSHyrffA==","signatures":[{"sig":"MEUCIQCE+VBv6EKZUOZ6Z86iTEdy9r6q/xYrizcBJvp7xcbzlgIgI996RgsP6AwG+k1Ir/iBSdT9lkF0+ldeE/0NEisjhic=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/","name":"ansi2html","_from":".","author":{"url":"http://agnoster.net/","name":"Isaac Wolkerstorfer","email":"agnoster@gmail.com"},"readme":"# ansi2html.js [![build status](https://secure.travis-ci.org/agnoster/ansi2html.png?branch=master)](http://travis-ci.org/agnoster/ansi2html)\n\n\nConvert text with ANSI escape sequences to styled HTML.\n\n## Example\n\n```\ntest[1mBold[32mGreen[31mRed[0mNone\n```\n\nbecomes\n\n```html\ntest<span style=\"font-weight:bold\">Bold</span><span style=\"font-weight:bold;color:green\">Green</span><span style=\"font-weight:bold;color:red\">Red</span>None\n```\n\n## Usage\n\nIn Node.js:\n\n```js\nvar ansi2html = require('ansi2html')\n\nconsole.log(ansi2html(\"test[1mBold\"))\n```\n\nIn the browser:\n\n```js\n<pre id=\"test\"></pre>\n<script type=\"text/javascript\" src=\"ansi2html.js\"></script>\n<script type=\"text/javascript\">\ndocument.getElementById('test').innerHTML = ansi2html(\"test[1mBold\")\n</script>\n```\n\nIn the terminal:\n\n```bash\ngit log --color | ansi2html > result.html\n```\n\nThat's right, ansi2html.js works in Node *and* in the browser, in more or less the same way.\n\n## Supported\n\n* bold\n* underline\n* foreground & background color\n\n## MIT License\n\nCopyright (C) 2011 by Isaac Wolkerstorfer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","engines":{"node":">0.4"},"scripts":{"test":"./node_modules/vows/bin/vows test/* --spec"},"_npmUser":{"name":"agnoster","email":"i@agnoster.net"},"homepage":"https://github.com/agnoster/ansi2html","repository":{"url":""},"_npmVersion":"1.3.5","description":"Convert text with ANSI escape sequences to HTML markup","maintainers":[{"name":"agnoster","email":"agnoster@gmail.com"}],"dependencies":{},"readmeFilename":"README.md","devDependencies":{"vows":"~0.5.8"},"_id":"ansi2html@0.0.1","version":"0.0.1"}