{"name":"kolorist","version":"1.0.0","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"},"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"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.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json","./":"./"},"prettier":{"useTabs":true,"singleQuote":true},"gitHead":"49bddf67b4659dce56bb818c4ea76f3075f0847e","_id":"kolorist@1.0.0","_nodeVersion":"11.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-kpiLuT+kb7oQQC2UTSP+ESK4y509UhAn0Bsou0ARj19bs7jrXhUEI5sSc62GdRmueynUZKHi+DFc2Yr6PsDU3Q==","shasum":"b216a8ba811a3e6761c6fc0530411082f380bf14","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.0.0.tgz","fileCount":9,"unpackedSize":34718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTaKtCRA9TVsSAnZWagAA+34P/1S5asYsqq2steJ1PY4n\nn9aRcoQokWaPwjHt2D3tba8lcnFGY8BpgXWiE6Z932fLBnep1oXWE2vplDpZ\nahNKXsJy3MHuufiz7l4Gao7T/thE+Rqwgd3Dyk5xvqUaHzRkClFJKi5mTNwH\ntkiZGUg5pGzgn4RzTgK/i9C+22fs+lQ5iN4xWqfMlL29pyJz7iT+Onze+lCV\nGor4v4K4SBDKmPk5KOJF9gczMKuuvPJ88QijfhZMkTUseUXJPzsTdFX7dL2y\nTpfMx4CN5S3hhRVS+bIrXmhjlZcSHRTLey6ee+y9k/hf2Q0Jl+BnJzxT7NfY\neqRklbP1jfdzJbg8m6CiV/GR5RBkd+JEfU9hu/Vml1U/gmvXXUr3v+jLk+7O\nuuO6fL9nJUp1PuVIvTJt5w6blc82JV/+tiVTxSLs4SQgASGNgKWfL6cUZ88C\nrVDxDx0e+LJ1uI7UdS8gNvk8G7zN2M9DCuupbLi0bRdUoWojZ0J+iegs0516\nCPrBB1WobY9+F+pWGSrNyuQ9ialotWwMrS6fD7F0pmZySd5/0SoPLRGyrqHL\nJKNKrv5HB6HeNkASlSRTYUwJeDo0dglIIaSrNpm/PPE3zAQS/df0kwcOry79\nDv7d5UeWtuu7dldPstGJLCDJF40jj5xI09ZfyJs2ok19rStnjHuNO+H43mJE\n/hh3\r\n=JuwH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfCGMR/xmXxu6SyfH3Q2xQ1a7DAClkJpGfgAzru98UWAiEAntPOxC0BJDkRVly5L8TGNPkp+0JOqdQqTGuFgsgx5JY="}],"size":23380,"noattachment":false,"key":"/kolorist/-/kolorist-1.0.0.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.0.0_1582146220483_0.20972677657310967"},"_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":1582146220610,"_cnpm_publish_time":1582146220610,"dist-tags":{"latest":"1.8.0"}}