{"name":"kolorist","version":"1.2.0","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"},"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^13.7.2","mocha":"^7.0.1","rimraf":"^3.0.2","ts-node":"^8.6.2","typescript":"^3.7.5"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json","./":"./"},"prettier":{"useTabs":true,"singleQuote":true},"gitHead":"fe5f9d65e577d3e331f14173c298c17ef19e617b","_id":"kolorist@1.2.0","_nodeVersion":"11.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-WMRaf2kYZYllod4vnmpAh1fmtuyqYKsjEA7VsU2kYydtWqq2Vm92oZW2K4y/IczCAYJXQKLTth6/ldc1WCVXhQ==","shasum":"b6c76ed1634aab9bbe157dc2736e59f48b4cfbd8","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.2.0.tgz","fileCount":9,"unpackedSize":36640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeQAzCRA9TVsSAnZWagAABNQP/08RGCaLpABOCByQxNp3\nLiM7mGKRd46Rnzju0JDAABPHHup3BbOTNEwtCGC8RyO3V8+Ge6olGZ1WHFfP\n3opEhbVaRcIxKrOEBrq1Q9k6IJ6DhZz+3saEBpDocRZb71GWLfZ7vluQYrCi\nmvkqL+gbdL3WxJFRNWps1Jw3yLHWwQ+a0qhNKc9UIZ9a70xdaxlFWuVavncH\nsoizlup3x7xwinTDPoq41AECnr/LuuZrhUaipJBma1JB/rKxyIILZFcOFm8G\n1sHTZQ7JOMWfywqEpB7pJUNHlnkZdeDUNEOhDgUZIcA1fn78gNehcdqQtbQI\n3HC4r6yYGRLW7A0epZUHaR/1JBHKV8HCsrcxN4a+iYR0bJT8Ail5jYehvHVZ\nW9gpsNSq8QbBwugxh/yr+gNjOGuV58fUsSunXZMQqYJ6bbi9myouJWLxkwQ8\ns0zml13pzlb+BSu0covxdX9KeAyoIFrZRhnzwz7IcU2izKCQ5/02UWHeaA+/\nBf1FNtrw9b3LCrZd+XjJpV5nrappNo6RSXqLaQX7nD0aq5FZM+o1FWbJ2zOM\nXLVV40FtoykOK0cYLrakKe3MO8j/ekKbORz7FwMrlIBB8+qJuiOqPyxEQYXt\n7oezW7A3yxChAAMzo7bvvozqJmpDr9LMppZrMjLGk3s6eAzy4i15T/D2sCAI\nitCg\r\n=fUPW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbpfqUpcSwMzJvB3ctqDS45oDWrtJToNRmatBCUZD/dAIgaFPrUZt9ao17pEW0IqMROw21nc469sQVWrXP/0Tr1mA="}],"size":23802,"noattachment":false,"key":"/kolorist/-/kolorist-1.2.0.tgz"},"maintainers":[{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"}],"_npmUser":{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kolorist_1.2.0_1584988210537_0.1396582981685821"},"_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":1584988210674,"_cnpm_publish_time":1584988210674,"dist-tags":{"latest":"1.8.0"}}