{"_id":"nagu","_rev":"1-72c54aa41d08a1d3c0c86a109403a46a","name":"nagu","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"nagu","version":"1.0.0","description":"ANSI/VT100 to html converter","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/SirAnthony/nagu.git"},"keywords":["ANSI","vt","vt100","console","color","html","terminal","xterm"],"author":{"name":"Sir Anthony"},"license":"MIT","bugs":{"url":"https://github.com/SirAnthony/nagu/issues"},"homepage":"https://github.com/SirAnthony/nagu#readme","devDependencies":{"jest":"^24.9.0","jest-cli":"^24.9.0"},"gitHead":"35e7cfa5d08aaac427a8467db3939c419a157c4d","_id":"nagu@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-m/sbiVl7SnrAM+6iF63eZpSMTxFnh5sLMeGob89+mywgi+3iqOmraZ2y/x39BxB9lxIIEKWH8Gciay70TY5E4w==","shasum":"4046ac109ae105fed5c477611429e4b52280be0f","tarball":"https://registry.npmjs.org/nagu/-/nagu-1.0.0.tgz","fileCount":5,"unpackedSize":10912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAO+BCRA9TVsSAnZWagAAK7QP/23im3dsZ0+bb0p9fpwo\njLewfP3vwAkeGO+7Kia+7GrayeOWj6aS3xYBKTparLEsoO6SIMKKdM3w9yKj\nTb7JT6BA+DegB/9nSPbgl72ba/grbS1RzQRHSJFt/CTkBWdODWnldokE9/I9\n2zMWGpIVzdtaoeTxNXhHmO2sS1KrvoBFlxjKo/UT+uB1mjlY+phkRnGPNVHr\n6J96IApTVskjoNVIby+/lqkA+7G4qtr6LT29CkYxdedMVxj10YKP8hiIOsdN\nPO8tA6p+SqjplF8bHk9U/+jWYoOhMZc4182+1X/rkbAzGw9ncbqXRBrQA9eo\npZaBhY0hw9jgucfqIGxQiJ+ni0JeaKyuFX3nYjWwAnvz+x/WzbjKhpqjw8Gz\nzG3xdBzLuv/IlMOF5+CuToZ8sI8Cj0dMpa1X2lcU8X44mLgwUhO/S2cNkbU3\nVkVuIoRMhIYvd/mH1QS0YCZbDLShrRAMIERJ/9grGTr+vg/6COjuS2jOuK7J\n7BhzNKQVFemUzU/dBFb0KLQyavxjxWbjxnyvlgXG5h2JYR8g6fq7wFLxIwOW\nWXxtyyU2eIgoiQeXktEcYHGP11hOGyamIWxuN3xxU+dsq9nAzTfgyqFtVDug\n6jQFiS5lin1um8yFg/C1WZIZEi5UzoE1IYbMIzHKpInHzpza/hs+wskaSoHt\nwg9Z\r\n=NdgQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFcfL9fBHakuqAfA03pUZry9Tvk5lTToeTyx5EO+nSbQIgIRARbfUytw3UCaJ5BQPUFf/Q1pSp8+JvX6NMEN4k1eE="}]},"maintainers":[{"name":"siranthony","email":"anthony@adsorbtion.org"}],"_npmUser":{"name":"siranthony","email":"anthony@adsorbtion.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nagu_1.0.0_1577119616816_0.23405017142988171"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-23T16:46:56.815Z","1.0.0":"2019-12-23T16:46:56.953Z","modified":"2022-05-10T08:26:43.758Z"},"maintainers":[{"name":"siranthony","email":"anthony@adsorbtion.org"}],"description":"ANSI/VT100 to html converter","homepage":"https://github.com/SirAnthony/nagu#readme","keywords":["ANSI","vt","vt100","console","color","html","terminal","xterm"],"repository":{"type":"git","url":"git+https://github.com/SirAnthony/nagu.git"},"author":{"name":"Sir Anthony"},"bugs":{"url":"https://github.com/SirAnthony/nagu/issues"},"license":"MIT","readme":"Nagu\n====\n\nNagu is simple library to convert ANSI/VT100 formatted text to html\nrepresentation. The main library use case to save colored cli output\nfor latest representation in browser.\n\nUsage\n------\n\n```python\n>>> import nagu\n>>> html_text = '''This text is \\033[4;34mblue \\033[42mwith green background\n... have \\033[1;39mtwo\\033[21m lines\\033[49m and still underlined\\033[0m or not'''\n>>>\n>>> nagu.html(html_text)\n'This text is <span style=\"text-decoration: underline;color: #28f;\">blue </span><span style=\"text-decoration: underline;color: #28f;background-color: #0c0;\">with green background<br />have </span><span style=\"font-weight: bold;text-decoration: underline;background-color: #0c0;\">two</span><span style=\"text-decoration: underline;background-color: #0c0;\"> lines</span><span style=\"text-decoration: underline;\"> and still underlined</span> or not'\n```\n\nRendered html:\n\n<p>This text is <span style=\"text-decoration: underline;color: #28f;\">blue </span><span style=\"text-decoration: underline;color: #28f;background-color: #0c0;\">with green background<br />have </span><span style=\"font-weight: bold;text-decoration: underline;background-color: #0c0;\">two</span><span style=\"text-decoration: underline;background-color: #0c0;\"> lines</span><span style=\"text-decoration: underline;\"> and still underlined</span> or not</p>\n\n\nnagu-pipe\n------\nsmall 3-lines utility to use in cli with pipes.\nTypical usage:\n\n    grep -R --color=always 'na' . | ./nagu-pipe.py\n\n","readmeFilename":"README.md"}