{"name":"kolorist","version":"1.2.8","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","node-pty":"^0.9.0","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":"9c010c0230decddabdca062f0bc6c2a87c83eb59","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.2.8","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-w9SdDIp7TV8zSGy46lwFyY1O4ZlDa2a8HDQWPkFqtKj+AbwHef5cNcgx3dz9UXo/swfwht2+2cydpdAPuhNFRw==","shasum":"bc2e4de44dce78a4905558bfa60252db9af1bee0","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.2.8.tgz","fileCount":10,"unpackedSize":41129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7Z++CRA9TVsSAnZWagAAp60P/i0WbWsZpn1LnjowDjVB\nFn2IVZ/ugBquKhcHAxqdowYnpmI2Zb7u2n92l62euQlaI1cQxs6gdHx0wVRD\nQyKX3OOiJEHIaZdE1CITr2E6hnnCFsk3AFijqclNPmndY6z13o43hFglnVnn\nSQlgcbo8AcPItixs/nLKZv13pvg6oj/42XxtNJK09yKj4MzDv9Rr0itN3S4d\nhglwkhaul5OQ3kPhvSqeh5gjUX/epgu+YhBYC5SsySO7lLy6Q5634W0PonS0\nh6gdNbwQzZ9AggCuWsYkiN2AkZ6Vm+HaW3vI1ADM2x9y5ltWjj7oVPFR7oVN\nurjE2IdlAZo7WCKFNtNZ7Ls31sspiSDAuIINRnZHwFgd6QYxloNK9HBJ3TQ0\nIJlAz/+E92+2tiNbjpk2Pcrowj5cIXKyPPS/JRR4SvSzxtZYJK6D5oa3txVu\nqpiN9P/AeYUvJCiSHg6GInHBuY60pfQNLL9c4XFq1LC13j0W8N9Ck+hsW8Fx\nGe0mIYg6D67AlxEkJQjZiHArmLA9Qf1kvJOgYQU8RF8PY6gf1qBRc2H/qXhG\nUB6yit73c0joyfSXrk2N7r/IrOXZv2LpDXjQRTyCQSZru4oX0rMny9O5eXcW\nJQbnwCGsqgkvB1YKF+HWZzRmZmrYzoHaI8yLdGPKM+IhQQLc4q2m7gvDdTuf\nylMX\r\n=qYfU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGACOr8Rf0uC2KsVZeCGDwDcvF3D5GtMCF3W3o9N6rvVAiB60k+28iGM27BhXtPW+CxmCtQpHsbGR6SlYPwWAWoM2w=="}],"size":24110,"noattachment":false,"key":"/kolorist/-/kolorist-1.2.8.tgz"},"_npmUser":{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"},"directories":{},"maintainers":[{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kolorist_1.2.8_1609408445740_0.5728722125407333"},"_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":1609408445865,"_cnpm_publish_time":1609408445865,"dist-tags":{"latest":"1.8.0"}}