{"_id":"@aqo/ansi-codes","_rev":"1-f2ebdb3cf3afb047aaa1d17bca8695ef","name":"@aqo/ansi-codes","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aqo/ansi-codes","version":"1.0.0","description":"console text colors, move the cursor, potentially more","main":"ansi-codes.js","author":{"name":"Aqo"},"license":"ISC","_id":"@aqo/ansi-codes@1.0.0","_nodeVersion":"10.15.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-Hh2vW7gAypBRTieSrl1rLFLZqo9J4SLRt/oYuyyNQT13Om8Uneyzb6Iq6qBbvg/g2l+fZB2mx06xu4O0BFi5Aw==","shasum":"510791045703fac2dc335472f505e65b8611d6a0","tarball":"https://registry.npmjs.org/@aqo/ansi-codes/-/ansi-codes-1.0.0.tgz","fileCount":3,"unpackedSize":3141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs5gMCRA9TVsSAnZWagAA0MwQAKCB2NmyUELJhUFqoh47\n7X70ye6IxyOmUN2nN6glQsSAPGQ/muLSCTlAKwSFddY/NVLE9ECGRZDQCylw\nfOAhVKLEnOXoXoAz6FPYTuU5PTExjxstN9pjO/66r4Na/bm4T5eDGtgGp3Sx\nSm7yB3rmcfJ7sKE67I3hRnZ9XsWMtx+jpJJHiFNAAcFjxtlgAYjzBUyN0IGn\nu5+1q3XszfU3pmAbQlkAKowyNTXVmCnn7CLxPn3fhZ7xZQ+VoqURBBVVJ8a5\nAhNNRbyaeID5RuOPsNR0wld4USvuBFTeNnS3Zl17RdRb0kbZ/5N7rSxM2jaf\niQTDyBPVLgf9FMNpONoLTS7Yze84QlZCYEiFzcdP3yOzhRiQAhccEf3jNfuA\nID84ES4WeIjuyx7N6hTy3f5pB1RjmQuQfk8GhS08pqWT4N48yjdMcRK8KCW+\nfW3j2u1VaN0goVUxeojC1IgWpfqMN10YDDtN1LW7umMOMSR3DqBetMBcsXb7\nfbWPrbf9GirdkBXK02b2of3Zz5fjhg2ua+gYJ/yna/SIrTt/GUDp6HE7hfuj\nwqqKfQuoMCHu3CsYicyKfhkDkpQmTfUxlEHptVflK4Ja0KxzmwLRqy47Crja\nGefFQqL10ZqBVZtkUUBbtQx95aYk761np5i4Q1wPcLwhXurXWS25pzCa73FI\nTiXE\r\n=xtWy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYIUeTPrO9Rp+FSaHD7yhZY6xhiX92utwVfrvDw5s/aAiEArUF2YQ7abjKutEDW2rSZv7Hj47oPGcBpcIps0iL4LqY="}]},"maintainers":[{"name":"aqo","email":"aqocyrale@gmail.com"}],"_npmUser":{"name":"aqo","email":"aqocyrale@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-codes_1.0.0_1555273739799_0.41217032033571965"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-14T20:28:59.610Z","1.0.0":"2019-04-14T20:28:59.913Z","modified":"2022-04-04T15:13:39.307Z"},"maintainers":[{"name":"aqo","email":"aqocyrale@gmail.com"}],"description":"console text colors, move the cursor, potentially more","author":{"name":"Aqo"},"license":"ISC","readme":"# ansi-codes\r\n\r\nConsole text colors, move the cursor, potentially more.\r\n\r\n## Usage\r\n\r\nWhenever you use codes that alter the global terminal program state,\r\nmake sure to append RESET at the end, or else it will stay in effect\r\nafter you finish printing.\r\n\r\nThis might be a desirable effect, it's up to you to decide.\r\n\r\nYou don't need to reset when switching states, i.e.:\r\n- `RED + 'red' + RESET + BLUE + 'blue' + RESET` is redundant, instead, do:\r\n- `RED + 'red' + BLUE + 'blue' + RESET`\r\n\r\n## Example\r\n\r\n```js\r\nconst { RESET, RED, GREEN, BLUE, CURSOR_UP, SET_COLUMN } = require('../ansi-codes');\r\n\r\nconsole.log(\r\n\tRED + 'this text is red\\n' +\r\n\tGREEN + 'this text is green...\\n' +\r\n\tCURSOR_UP(1) + SET_COLUMN('this text is '.length + 1) + BLUE + 'blue' + RESET + '\\n'\r\n);\r\n```\r\n\r\nTo find the full list of commands open the source code. It's just one file.\r\n\r\n## Why\r\n\r\nWhy not other NPM packages that do the same thing:\r\n- because they're bloated, slow, and opinionated\r\n- this one is minimal, fast, and provides the bare minimum, with very little opinions\r\n\r\nWhy bother coloring your text at all:\r\n- it just looks nice.\r\n- has practical uses if your program prints a lot of logs, helps skim critical points faster.\r\n\r\nWhy all-capital names for exports:\r\n- to reduce the chance of collision with other names you have,\r\nand allow you to use the defaults 99% of the time.\r\n\r\nWhy is not every single ANSI code ever supported:\r\n- there are countless ANSI codes and not all of them are very useful.\r\nLet me know if there are more that you'd like to have.\r\n\r\n## License\r\n\r\nISC\r\n","readmeFilename":"readme.md"}