{"name":"kolorist","version":"1.3.0","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},"dependencies":{},"gitHead":"2830b3b1a9e9e12a15d7afa8839c05e00c43fdcc","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.3.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8t4WbQ0FxMSJdWMDuvNhSRbxQiMAIN97CthZHtDpS9Zo8baG0nSvqTCCgcp4SKQdLD05LzWVYxWQyE2n820BfA==","shasum":"81345b3a15aaa5fa5f10159be72fd429dddd7321","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.3.0.tgz","fileCount":12,"unpackedSize":54758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUlWyCRA9TVsSAnZWagAAsJwP/3O1z8u730p01e6lI/F3\nyh26e6Byhy1ZSwsCmfcd8xnweS+KwmGAQjCjadJQHGjVzre8ILcwgjQpD0r1\n4+mtvh96hQ1XmuqEPZ6EGZ+AFTckJcURfJb/Yv1KOMgInGR+nQW4c+J98OMH\nznzx2aW0r0Lec2EV+K9wM3eyHyyCo29gvEUYL7sfpLFEFhZGkWpEA428r03M\nBPFK4hXV6wNvShP+Dsm0yXgbrQY/gxn6BXxFB1369oWVqpCRU3cApIoCEsLv\nbqQGVyOqorA8CpXt2RifV6jU1N7Rx0o9NZp4q8z6Ydvd0OqAXglvr/o0HUjx\nXq+jRz6YjFvP5NljJU1IYMIVdDpbgYIPDLDRiHIybTHPj7HbG4DJ+DN3vjNG\nALKWpUh2x1EVwRNvBV0jlFokXLkWFNYyy9VFKhvdo1yYf+qwZZ0pOa+YA1/g\na9aDDj6M2QjABNxWodhkAzDneKWM3MtVK8avKhjGS4pfQC7/QRHYb+nvgW5F\nCAPPShsPMECydft7SgfbaNPl5h8A/CBRGvVHyABo1GMV9ftTTB7oFk7offpw\neNPsZArbeWIpLkyMfvsalel2VAiPC8bdba0yM/rPQrkQQHZrgHS5Ywlt+CaB\nOOgeukzRPTPB7vbwUjwRM3VBr9UOmAwIvmRccqDZ2RBi5WteViJ9BlR1QUjI\n6fr1\r\n=55e6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5K+P+6WBUootKvNBtcGVqz2MiVXqkBb6L+mjqITWXDAIgXlWrqX6l9q9v1bFOMmezJjkTYsligE/hqJh+5OMjm2M="}],"size":25951,"noattachment":false,"key":"/kolorist/-/kolorist-1.3.0.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.0_1616008626026_0.7187380391359128"},"_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":1616008626316,"_cnpm_publish_time":1616008626316,"dist-tags":{"latest":"1.8.0"}}