{"name":"kolorist","version":"1.2.9","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":"c625a09df86fcb29c04bc63497ee8ab484ba34aa","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.2.9","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mba6w9rkNlcMSSsGM1Xb9rgGFCDEL1APijLIkgtjsORyr9bKaSvQg/2fP8k7lwEiTh8WlMCHWREvf1ndguIKIQ==","shasum":"ccd5c68827c0385f0b26588321c3b6c4433dd2ab","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.2.9.tgz","fileCount":10,"unpackedSize":42458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf77oeCRA9TVsSAnZWagAAnacQAJXF5xB76zYboO5ysiHK\nCWLtsAE7M7cPa7vBk+QzxLGEmft5bxOwRZJuml/WYKq5YLCIkqzXvg6K6Wak\n8XdIQLqwSBh1DTp44K3jf8dzKgxzs2547kL1a+gNy+Y7hCWBjqCx3tfpbmDC\n4XYUHDh4Jw8vLO9BuuHoIcRBumARk8ZxH0stHddj9ueKJFx76rCRDfR2Mx1s\nEGX/MFz1s+BySHqm0xoECiCpbz8+v7vNEMHiDVFbaStgoGoIPOxjoWjVOkKD\nc2SWfHWO1ZtAjzAnjjitevjRg9s60nrRswfHfkbrzZuT9ZDMnwyRpnEKn0As\n+kZeFIEQiw05lOPwnw+QRqbbjpJdMJDxjdewtlld9ujqGfeWQweoxSc6NH+A\n99lSzIquaIIfLWgmgPnwQGUq83RmXPM6qFBYNYCPooMRK0sBfNGlo575D3bc\n+YICEAGHhSWqlq48DzniA4sdJQ9LMgc8ChjFAM9zQ+hPHCMkw77w18A3Aew1\nAu4PD1J5BHZAPscm06wdHGvwzuhOta0Bc9EbwwptPbbFAtQ+jk6sNvVwdEoq\nqEJlwrh48Pqx1VPsZNCAHx9iTZenBEbJxEFJAT4l/KGPoWUbZBdHcCwpEeLc\nFHtwc1/zfletL+pxxNLQekcDC9MjyRef9gS1WQ3rj9NURbpd4EIzjnVT/z19\nRriS\r\n=c39N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAH1b/7mhGQuAGjPD0/a8kc0PkFgRTqZUGI+C11dpPwOAiEA+SLaV2ey2JDtf+pAfAOEWKFtZX50n/pkiI6uHbRUmlE="}],"size":24287,"noattachment":false,"key":"/kolorist/-/kolorist-1.2.9.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.9_1609546269548_0.3866183166767385"},"_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":1609546269753,"_cnpm_publish_time":1609546269753,"dist-tags":{"latest":"1.8.0"}}