{"name":"kolorist","version":"1.5.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":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"},"./package.json":"./package.json","./":"./*"},"prettier":{"useTabs":true,"arrowParens":"avoid","singleQuote":true},"gitHead":"bd15db525f8acda9436a2cf748035b75c44047cb","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.5.1","_nodeVersion":"17.2.0","_npmVersion":"8.1.4","dist":{"integrity":"sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==","shasum":"c3d66dc4fabde4f6b7faa6efda84c00491f9e52b","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.5.1.tgz","fileCount":12,"unpackedSize":57652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvJ99CRA9TVsSAnZWagAAGT4P/1180NqQpxI8pqWbItnp\nnUBlSab5xcR3NMbwnfjp9fRFiBtBLLnnStWNXNJmyX1SOvE82N3+9nRubFxN\nzsrP9ItFQ6wIBGpUbFKkQBxgoUjrHZgZxKhcvsXGihrLQBTAHBiOj17/d5Uj\n1Fx01AQjJ28d1qTwmatQofWrdLUwx88QTAlOW2L+de0X6dSmuNMAUzrBfBZv\nW6ZDRg9K+cUWTaGegCz+hZQBu/T6REqWW0ulFUsyHSqzgTc9lpFkw0VeHuto\n8iRrTj3WcewqIIzTzoXCk47LWfJjhNxyZMgNCw2EKEl05Pj/LMaGcBlLhIAL\nVHuRrOrke45NObrwt03A1FeFb5r7U78KHfbX0U3rSjE64E42HwGi2bnjK0A6\n+DX5qZF4Tl80/piHHWcv+8dgyStfIWjY79nJgGftmbF+RL3pCw7mi6AB3xrC\nZWygQrCJkhET9XQncpG/B3DBp7nfaDC5QGLtNVxrNusiiVzqgSbae8SbYAx+\nAHQjKfOWqkMPLy3I7rBl3gjfVsGOLBHSLGcXIRAVPHb4ZC9zQbSBtZbNtLdt\nfGk/2t2cmjx4wX8JFErV4uXo6xXjdW1eYHmvurWosmHktA6K/wrXO/feByM5\nY9rtduo7u+qw0okAJP/Gusj1GYPCmEqgMPTqQ3zhewQXU0OMZo7LbxQQxXxB\nkDvq\r\n=hF5w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJHjWIL7my1f/SWeERtxxosysPB768+tyHL6J/qAHKhgIhAPg+cQ8KmfDCRd+VZDi8JnwQLxWYI4qTyDYiW/4Ai+Ez"}],"size":26175,"noattachment":false,"key":"/kolorist/-/kolorist-1.5.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.5.1_1639751548970_0.3411389414636725"},"_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":1639751549168,"_cnpm_publish_time":1639751549168,"dist-tags":{"latest":"1.8.0"}}