{"name":"kolorist","version":"1.3.1","description":"A tiny utility to colorize stdin/stdout","main":"dist/cjs/index.js","module":"dist/module/index.js","types":"dist/types/index.d.ts","scripts":{"test":"TS_IGNORE_ERROR=true mocha -r ts-node/register --extension ts,js src/*.test.ts","build":"rimraf dist/ && tsc && tsc -p tsconfig.module.json && 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":"^8.2.1","@types/node":"^14.14.35","mocha":"^8.3.2","node-pty":"^0.10.0","prettier":"^2.2.1","rimraf":"^3.0.2","ts-node":"^9.1.1","typescript":"^4.2.3"},"exports":{".":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"},"./package.json":"./package.json","./":"./"},"prettier":{"useTabs":true,"arrowParens":"avoid","singleQuote":true},"gitHead":"26308c67471f7138a0799c380e5c7fd2d4ac9127","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.3.1","_nodeVersion":"15.10.0","_npmVersion":"7.6.1","dist":{"integrity":"sha512-37ebzkBejUMNXzLWth6BMiqpaQof2/c871k3/6ZP2BfzzjbbY4qSxDjlZs8VFXCHZje18fWjW6QfkwNxoT5lcA==","shasum":"7caa67b247d9072a0e6de1dfe909ad02529d6696","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.3.1.tgz","fileCount":12,"unpackedSize":54512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUo/8CRA9TVsSAnZWagAAz30QAI73XvhqCakZbtIfGNDg\nKpJtS2jIHnKqtVdKEMqlqpS8mOdxZgU1/kt5XuS/gTrXrAPgd1yncLF1JQmq\nBttzMAioJi+zMC/rBzwKO5PNNvgsnHbp8SQ8dLtvSBEuM1SLP2Ou1KuZhdzp\nmgZJafv16v8cIWBj21j5Oimf0n1rIe2GZ6SBMDLRTgx32oNy4ibQe1+wKkGl\nLn0xI9MgJZPXmE4W0QJ1VJilsWWMT4oEa3WvPPeUIamTFpL/1NrTxORuzhMQ\ngrdyNOAw7r9dN5V11HzWHKjLcE9FkBEQHYPNNy7F6BFNG7CaFthM9dOPZLWr\nK9wQb5dW/XOQW9TaL1cWjaRDpChlJU4eGyN/ih2G9nfNKskxokR8vWlzDfP1\ngrqBFCl/FCDpkR+yjpDhYMIpVAuWFu/+O5tHkg5AUFAjH6i3ez4twA1/nvcv\npoPCENMGYjU9qfyoFpTZUGz9XjYT2g6r9s/bUnaCD3tS3bmkv66k1piMv/iQ\nOwa7BodI83iGvOfuwz3Fm7vyVSVhGfTHvEba1u4drfXj0ZhI2i9Gqbo+y2oB\nfXIv5SFTmjq9BDNpwodbl1+f8zUCFL3N4w6Z9FOhyoYxgKjpVd96A/ZlF1Qi\nawqGxIDKPwZfQPWeZF4BuhyFpFRfDtTe4Kw92OWwkyDOJpnmqTnKtHwFYxDN\nf9wV\r\n=kqs0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHT07Twf5yXfW+EnYxlSl6bi7zb9bf6wdzv09pVJRhdFAiBP14DRdm8odED6KGMRKsDzNt95/qQdGpV/8wmVEdFhog=="}],"size":25984,"noattachment":false,"key":"/kolorist/-/kolorist-1.3.1.tgz"},"_npmUser":{"name":"marvinhagemeister","email":"hello@marvinh.dev"},"directories":{},"maintainers":[{"name":"marvinhagemeister","email":"hello@marvinh.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kolorist_1.3.1_1616023547919_0.07545795247088805"},"_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":1616023548142,"_cnpm_publish_time":1616023548142,"dist-tags":{"latest":"1.8.0"}}