{"name":"anser","version":"2.0.2","description":"A low level parser for ANSI sequences.","keywords":["ansi","html"],"author":{"name":"Ionică Bizău","email":"bizauionica@gmail.com","url":"https://ionicabizau.net"},"main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git://github.com/IonicaBizau/anser.git"},"bugs":{"url":"http://github.com/IonicaBizau/anser/issues"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","jshint":"*","jslint":"*"},"homepage":"https://github.com/IonicaBizau/anser#readme","directories":{"example":"examples","test":"test"},"blah":{"description":[{"h2":":rocket: Features"},{"ul":["Converts text containing [ANSI color escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) into equivalent HTML elements.","Allows converting the input into JSON output.","HTML escaping","Converts links into HTML elements","Friendly APIs to use with  virtual dom libraries"]}],"example":["When using **TypeScript** without --esModuleInterop enabled you can do the following:",{"code":{"content":["import Anser = require('anser');","const txt = \"\\u001b[38;5;196mHello\\u001b[39m \\u001b[48;5;226mWorld\\u001b[49m\";","console.log(Anser.ansiToHtml(txt));","// <span style=\"color:rgb(255, 0, 0)\">Hello</span> <span style=\"background-color:rgb(255, 255, 0)\">World</span>"],"language":"ts"}},"Or with --esModuleInterop enabled you can do the following:",{"code":{"content":["import Anser from 'anser';","const txt = \"\\u001b[38;5;196mHello\\u001b[39m \\u001b[48;5;226mWorld\\u001b[49m\";","console.log(Anser.ansiToHtml(txt));","// <span style=\"color:rgb(255, 0, 0)\">Hello</span> <span style=\"background-color:rgb(255, 255, 0)\">World</span>"],"language":"ts"}}],"thanks":"This project is highly based on [`ansi_up`](https://github.com/drudru/ansi_up), by [@drudru](https://github.com/drudru/). Thanks! :cake:"},"license":"MIT","dependencies":{},"gitHead":"d0fc213f4c0b4dad365dec18afbed0454fd89cfd","_id":"anser@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"ionicabizau","email":"bizauionica@gmail.com"},"dist":{"shasum":"12bd6fd23a9ff08605b83972a10f97fd1970a32b","size":11169,"noattachment":false,"key":"/anser/-/anser-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/anser/download/anser-2.0.2.tgz"},"maintainers":[{"name":"ionicabizau","email":"bizauionica@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/anser_2.0.2_1630982247174_0.45713210788584857"},"_hasShrinkwrap":false,"publish_time":1630982247311,"_cnpm_publish_time":1630982247311,"dist-tags":{"latest":"2.3.5"}}