{"name":"kolorist","version":"1.2.3","description":"A tiny utility to colorize stdin/stdout","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","scripts":{"test":"mocha -r ts-node/register src/*.test.ts","build":"rimraf dist/ && tsc && tsc -p tsconfig.esm.json && node tools/post-build.js","prepublishOnly":"npm run build"},"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"repository":{"type":"git","url":"git+https://github.com/marvinhagemeister/kolorist.git"},"license":"MIT","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^13.7.2","mocha":"^7.0.1","rimraf":"^3.0.2","ts-node":"^8.6.2","typescript":"^3.7.5"},"exports":{".":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"},"./package.json":"./package.json","./":"./"},"prettier":{"useTabs":true,"singleQuote":true},"dependencies":{},"gitHead":"96202ef011d7dbeb6a0da0d41d6d5620bd2299d6","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.2.3","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tKAyr5m4kClO8IfBXUKC8t9jUYmIlGGm5eYCbJlf86JWYUqpYMPszTyxpkSnJmIz3zd3rFL1uhmqkaUdWr6tIg==","shasum":"c7980231b1a35694f556dd56bdff571d35c559d7","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.2.3.tgz","fileCount":10,"unpackedSize":39742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKpsICRA9TVsSAnZWagAA+2EP/29ynOcwnUWqOpQAaGBx\nMQ/1BBoN13SQRVkwXSbkjKxC32Bo6Llsx4t+Jp2RJfpt9lJ6Dc8EJ1rJpMyP\n+zWTU8WtBsfVlcsAHa5iUhl+WMjv505tOktJCMGe2Wblqr3YevxcN+TSqM6Y\n9bXiC6HhE16hvD93tL3ZtkrVB+UoVplohlT2gKFT4tmS68r0Kqs5ig9SQVwz\ne6a6xHzs8K61aIR6m+zsWgGseRaL8jZrPG8VWkeucLkOvzcdERpLeUiz8rHZ\nJDcIVlyhKAzhVIHbFLoNgzUx3gpvX08IkT3kDhGtKn9S6u+J6yXfMVku/EP/\ndKsoClq4dMjmapJKyjToRl4kSiKoWYN4D6+xaFOp72SUzOOZbw4Ci1gtpFoW\nnq/n+muCh48AVYvUKHBBlYhu9kEqKR37/zc7uOyiGSmUShz318bq4N0EHaZI\n/rmGcfV76HaINdGkgqm6dzvlVcd9iJFd6gtoNVXgYpmI+XpyrFelR3zf6FI2\n7tklO2u3BuOgQRrDmZNg9xLBH+N2EsO94EE4Dfb1hN+AlQ62qCi26rdcO7c8\nIxFcstlHBwrwW9JeT8hz5bcoD16dx/DztTvRDLb1xwlagcCfguZy91x27eNr\neHlcjYJLrRH5BgDsF0yq2RMoZC1PmVhK+KEhsIqefPLfoRQlcYBDjaQLrOpo\n2NpD\r\n=4i2j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8X2lj2HYGjXC91FT72k+TerCCdZ4ybg1JdTIfC0YpfAiEAzoHHKp9abKYc6QR73WvL3/4PIAqbCAU/S68VZTmUjAw="}],"size":23973,"noattachment":false,"key":"/kolorist/-/kolorist-1.2.3.tgz"},"maintainers":[{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"}],"_npmUser":{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kolorist_1.2.3_1596627720080_0.9395828618024233"},"_hasShrinkwrap":false,"readme":"# kolorist\n\nTiny library to put colors into stdin/stdout :tada:\n\n![Screenshot of terminal colors](.github/demo.png)\n\n## Usage\n\n```bash\nnpm install --save-dev kolorist\n```\n\n```js\nimport { red, cyan } from 'kolorist';\n\nconsole.log(red(`Error: something failed in ${cyan('my-file.js')}.`));\n```\n\nYou can also disable or enable colors globally via the following environment variables:\n\n- disable:\n  - `NODE_DISABLE_COLORS`\n  - `NO_COLOR`\n  - `TERM=dumb`\n  - `FORCE_COLOR=0`\n\n- enable:\n  - `FORCE_COLOR=1`\n  - `FORCE_COLOR=2`\n  - `FORCE_COLOR=3`\n\nOn top of that you can disable colors right from node:\n\n```js\nimport { options, red } from 'kolorist';\n\noptions.enabled = false;\nconsole.log(red('foo'));\n// Logs a string without colors\n```\n\nYou can also strip colors from a string:\n\n```js\nimport { red, stripColors } from 'kolorist';\n\nconsole.log(stripColors(red('foo')));\n// Logs 'foo'\n```\n\n### License\n\n`MIT`, see [the license file](./LICENSE).\n","publish_time":1596627720195,"_cnpm_publish_time":1596627720195,"dist-tags":{"latest":"1.8.0"}}