{"name":"kolorist","version":"1.4.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},"gitHead":"87a6402ec3a99ee4714ffb3f9bb54fd1d16174bd","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-f458vL7ZQ+tAZv+6/ewRVznA/qbbtf+JGU/8Kf3Bzpo8vGPkgZ2Y9d0bpO/lX6EZj5e+hdugfSuOGX7WXVHTnw==","shasum":"5d04f467590e8a484d5ed9af96e9bb3364a8123b","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.4.0.tgz","fileCount":12,"unpackedSize":55199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZGpeCRA9TVsSAnZWagAAELwP/iedX6XiDF1T3zozTlxM\ngAH63j8w4R1YBjActFoH5pcgZRawvHRwoBpgW4kn1yWRuOyB4wY7aLifmYCG\n8jDRjI7e29kTPiFh/DeB1gh7wvU1OUzmpWfdbVTmQIELhwGWnX3bfaPlSkBO\ntlHj4LWR3zFwPERoorsXFyKCyINvethqZjKSz8MK2hd8KneWJ42kfurpNHIQ\nccNaXNfw6Ti36YThb2yrF0H/pybMi62pwNZ5O6FaFUhpPItTvVcnaX80X3y3\nFpVP1wlwCO3BA3ro3MNI0fLR0taLnAdVxgi1Q2sjBFN7/0H3GMnNPU3D4kSF\naA3NAYdJfpy6CSvuGjDbcLO8zKYvLPC3LFU7x+MvJ9Uc0tcbJ5dKZ73uGD5K\ni6Ik99QKB6Y330eqx7QycMBp53TU/NX/TXeGb/2XCDClZkG5QnH2gPrZLVnt\nqZrxGSF73cvmrYEfgY9QIErRwjPKfLdG0tcPc78ie8f7RBVTMxPC5Tg4mSKq\nYGX8OAhA6gv/WQt23HFDGLS8fyOUkBrJxNtT7YMOnyyEGIzUcKUAqvm9tovC\n2WhmHGqMNUoC5IuOL71PkjScsyjiXAA/hfe78uGcm4PkgEJjvjb4XFuIaOxi\nCAxPyXZ3sw3gEIBA5zN2TaPOSRq8nQYoWJ4gQXT8jp+mliFbUYmQtsaauazl\n6XT+\r\n=aIK8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLuO1lLbu0IV1p62l16ejHxIb38Yrxp8sbpS4FfUT3zAiEAzz0Z8UxqyKpoUDZ8R/JIwQ4cGZkx9NUljnn4XSAO9UI="}],"size":26003,"noattachment":false,"key":"/kolorist/-/kolorist-1.4.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.4.0_1617193566028_0.6540895114477543"},"_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":1617193566251,"_cnpm_publish_time":1617193566251,"dist-tags":{"latest":"1.8.0"}}