{"name":"kolorist","version":"1.2.7","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":"6d7d753d0d177929da7ae267236478a90cba03d0","bugs":{"url":"https://github.com/marvinhagemeister/kolorist/issues"},"homepage":"https://github.com/marvinhagemeister/kolorist#readme","_id":"kolorist@1.2.7","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-OuFA1+AkZveh3t0vti3zyMj0Vfk4mhwJcNcHcZ/y1TDYiZc+Ik3RY3kSLWAzxB0ns6eTZk65I42QYvVuqZF7iQ==","shasum":"7de9002661fb23713fc57d2fc5c4a3c06bbdffbe","tarball":"http://registry-npm.ywwl.com/kolorist/download/kolorist-1.2.7.tgz","fileCount":10,"unpackedSize":40531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhXOQCRA9TVsSAnZWagAAKtgQAJSJNmfClKAwRCLBEcrG\n+BiJtJGtFnw7VAb0PgP0f0NDHJo+8V7eptSD3HJLGG3RYAf0a1hnGvgXpxjP\ni9ruf4bTwwjn1LFbGQ5k7mprheKpgHgIks2ZSGoD4ADCS5EpVlsFc//9R2BH\nfg71cLQWCUrkjhy9HiIGyW35dkl6k3m00TYd28t4fCokofyB4II0sDxk9g7J\n5+mHlYua+yj9hf9+iOzHDnndDvnvLqgxLxmlZt7IBiQ7FEIfZDA9Neqmu8e1\nIqcKGfXmCwnPEj/7FOHTLcuKJMVmZnOxDpHFxaBLrDPNtxqMJ0F76+Qln3Cb\nl5AaE2OoCiUf3zAk7l4EbxFAXhprAbRURE4cjlh7+17k9VQiRYY4HHwC3jdG\nCc044IFPsSy1/iSvmpmqABESAbOGc6QOX+OQHMvqE4w9jhhcJH2feTqkWs27\n8gXTWzBGMVYHbC9dzpvU2iYvDDeb95zdidEZb/BzZB0rB81NyrzSNoooCdy3\nUDrmw1x+ZPHZYtq5bPfZ+kBwGAypnSbZTgNCvrT/8tn4wxiiBOreyHzfXi4a\ngKN39rs94KfhejQxTRjBWu4MLwvg4aNIKL508aSTHP1LggyfCWMGf+uFSTZt\nKmIQgYTePimH+NOhpi9FVBaI9qL0x+iTEjW0yGtn8WmduOw2MuaThiTgL+aO\nhkUp\r\n=3J5c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+BNqzHTbb9P0URhISb4ftnPrKSHE8gtAJ0KYyjTmy/QIhAIiG/DWCj4mBFiqN3sc8IT0OBcTe/EioMRNKsPsU8urW"}],"size":24035,"noattachment":false,"key":"/kolorist/-/kolorist-1.2.7.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.7_1602581391832_0.5554849238382826"},"_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":1602581391958,"_cnpm_publish_time":1602581391958,"dist-tags":{"latest":"1.8.0"}}