{"_id":"@timhall/ansi-colors","_rev":"3-93d0dba658b9ed15c9e8fde07d7fd68c","name":"@timhall/ansi-colors","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0-beta.0":{"name":"@timhall/ansi-colors","version":"5.0.0-beta.0","license":"MIT","description":"Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jason Schilling","url":"https://sourecode.de"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan","url":"https://github.com/Silic0nS0ldier"},{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"}],"homepage":"https://github.com/timhall/ansi-colors","repository":{"type":"git","url":"git+https://github.com/timhall/ansi-colors.git"},"bugs":{"url":"https://github.com/timhall/ansi-colors/issues"},"keywords":["colors","console","terminal","ansi","chalk"],"main":"lib/ansi-colors.js","module":"lib/ansi-colors.es.js","types":"lib/ansi-colors.d.ts","scripts":{"build":"rollup -c","version":"npm run build","test":"jest","benchmark":"node bench","format":"prettier --write \"{src,bench,examples}/*.{ts,js}\""},"dependencies":{"rollup-plugin-dts":"^1.2.0"},"devDependencies":{"@babel/core":"^7.8.0","@babel/plugin-transform-modules-commonjs":"^7.8.0","@babel/plugin-transform-typescript":"^7.8.0","@babel/preset-typescript":"^7.8.0","@rollup/plugin-typescript":"^2.1.0","@types/jest":"^24.0.25","benchmark":"^2.1.4","chalk":"^3.0.0","jest":"^24.9.0","prettier":"^1.19.1","rollup":"^1.29.0","tslib":"^1.10.0","typescript":"^3.7.4"},"prettier":{"singleQuote":true,"printWidth":100},"jest":{"moduleFileExtensions":["ts","js","json"],"testEnvironment":"node","testRegex":"(/__tests__/.*|(\\.|/)(test))\\.(js|ts)$"},"gitHead":"09874cb482cf0c00e0ca5e1cbf2be808789bf08f","_id":"@timhall/ansi-colors@5.0.0-beta.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-epuyZriqxpf8kZlexGtUrbBsDxDpNnoA2J1X03YdcO9/EYLQdsnBlAzJE5FLS5h56F5rRJclqxQdIoAfS8DMWw==","shasum":"c45f8f78d899a11a7df69058efa42b6bb943ff9f","tarball":"https://registry.npmjs.org/@timhall/ansi-colors/-/ansi-colors-5.0.0-beta.0.tgz","fileCount":6,"unpackedSize":23916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGq/4CRA9TVsSAnZWagAA9YUP/jbsWBIJEvHjmeyPaEEG\npzyNmbfDj5a39lVRICv5QNA0XqjlBPp+SNd7wY4THIhJphvqm0Vq5RtySlVi\nZkyS+88P2PUx+603Vx76rE8nf0HVNTvCY/LJLZs5r89FsrUv6vAsONsfCPGb\nqM6Lv7a8NBPhH3HtwGSS1uiTFfBGa+rMHxEVFdRnklDJ88YdUkAxYIBNlU9e\nDE09p8p4g4H0s0erCCex6dOYk895Oams1qUUvBfV4ycz+fNzp9LzyCcBewT1\n5Lb60gNnmQMmB6d/K1cq9Xa94/WTk7lFceThdLqNU/fYrTP6aPhoEpsKioSd\nDabdSYK2iyF4CZU5V9sZ3S+xMVtBvWSevV8orDs53sfxiQ4lpRfY8ofpRkQ/\nwrh3DUTuQooH7HHpTMh+RvTfP8Vw3UTuCDu8phQFLorAZzE509nC6NNzeZCj\nZ7enJeftJSDu0O8xp2a+ZQ9yERWZzcRFgxR360LxBDn2TssKaXWbZezsSTwi\nY8GyMMRm4IYqvZgV5FYXtH++MEoEDRy56YWsSfy49JYe2pOaSoOk4kN6d2jg\nZ0tVEsgVO4vKrjHIZqHG8Mv8UIFRpsM02pUhq4K3fwHmBK3fr9kz05qQv+On\nuvsiuYSi74b+RmFBalpqfaOY8SkcPf5ELl0Mva7/if/NejVtZZA1ZkFmSdSg\n0BL4\r\n=XXV4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrgFK+2WLNmQsedKTahlg7lUXdyAmLUFtOgku534Qz+wIgYSRlQkRCMaJO5adM6Fb1LHJFQCbNFSHqhj9RJhudXoY="}]},"maintainers":[{"name":"timhall","email":"tim.hall.engr@gmail.com"}],"_npmUser":{"name":"timhall","email":"tim.hall.engr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-colors_5.0.0-beta.0_1578807287660_0.04895717128607857"},"_hasShrinkwrap":false},"5.0.0-beta.1":{"name":"@timhall/ansi-colors","version":"5.0.0-beta.1","license":"MIT","description":"Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jason Schilling","url":"https://sourecode.de"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan","url":"https://github.com/Silic0nS0ldier"},{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"}],"homepage":"https://github.com/timhall/ansi-colors","repository":{"type":"git","url":"git+https://github.com/timhall/ansi-colors.git"},"bugs":{"url":"https://github.com/timhall/ansi-colors/issues"},"keywords":["colors","console","terminal","ansi","chalk"],"main":"lib/ansi-colors.js","module":"lib/ansi-colors.es.js","types":"lib/ansi-colors.d.ts","scripts":{"build":"rollup -c","version":"npm run build","test":"jest","benchmark":"node bench","format":"prettier --write \"{src,bench,examples}/*.{ts,js}\""},"dependencies":{},"devDependencies":{"@babel/core":"^7.8.0","@babel/plugin-transform-modules-commonjs":"^7.8.0","@babel/plugin-transform-typescript":"^7.8.0","@babel/preset-typescript":"^7.8.0","@rollup/plugin-typescript":"^2.1.0","@types/jest":"^24.0.25","benchmark":"^2.1.4","chalk":"^3.0.0","jest":"^24.9.0","prettier":"^1.19.1","rollup":"^1.29.0","rollup-plugin-dts":"^1.2.0","tslib":"^1.10.0","typescript":"^3.7.4"},"prettier":{"singleQuote":true,"printWidth":100},"jest":{"moduleFileExtensions":["ts","js","json"],"testEnvironment":"node","testRegex":"(/__tests__/.*|(\\.|/)(test))\\.(js|ts)$"},"gitHead":"2a29579881db0f63a8f54772b826311ff512b676","_id":"@timhall/ansi-colors@5.0.0-beta.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-76skogjKXFgc0JvFe/ldmMym4dXxzAlzT/3imTxav9l2MumzOd4R1+a5+4vVKr3dTDR1BZLaC9BnsYrj2rIZQA==","shasum":"85c3b357f87d968329ab2271e7096828c6006625","tarball":"https://registry.npmjs.org/@timhall/ansi-colors/-/ansi-colors-5.0.0-beta.1.tgz","fileCount":6,"unpackedSize":23914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGrBrCRA9TVsSAnZWagAA0n0P/16+MV6WVSjvW8Yl0PVw\nuE51Q3Pgu9vjKbSkQrrUiWCZ0DA4Jro51RbJ/yheRKfbCk4/9r4enD+OYagO\ndQjmIdP4p2LnhSgCPVq5tyGc+r8/980mlj6jY5iLK1x2DkGdIBAOlvL6LrmM\nDRiy/sTGQG4APTZhvB7bLa1iMleQv1Ji/VS5Cm2ooNbXJm4gWzGILBJ5dYI8\ndsJWVRRGBlFR9UjJbyJveCZhc4U9f+QtI/IyxQijEDPM6dDlODahNYC3oMR0\n4qiUAinZMknlOvtAoK+d6tVnbIDcx+64AJ3A7jQ5pGcNbdf5XG/NNf7bxrNM\nSFuytav4JZLGL/BLT1RxNvZRP6lrc8InnGo1H/ks8xcigp+ghlk4NBe7wPYZ\nKYBZ/2WTqTJLNzBNm1S4mMa/ybJJfasTimzZeOOSTXIVA/M3jIrNSlt+qyQv\nmwTxnq3K/9RF//UUr5jdEtq9jr2b4JFOLjaGL5ErsSU0uMYLH66xRuBGUZeO\nB0BmVODUpDqd4V6NF7eR2dtUu45TSIle41JykRS2W+MfmoeACxkkoKUsewBS\ndzoKg4WlNFfQTigyrsxORs55W+VS1Zlaw8Ijo7TVOfugJSEc9xUNAf9WBgkl\n9f1U58WpSV6V7AMrJeEK0Lb2PMjf1/o/SfC3p1VXZGeMPrD0zb/4im7kPE9T\nFxtI\r\n=KInF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFv3bxDGA7jG1Wn7j9sfcAVWpfzfAPDBceynJCbG94bQIgUVwTxQQF3sVCPUhCQl5Nzss6Fh4aM5xJ3AraggBSKlE="}]},"maintainers":[{"name":"timhall","email":"tim.hall.engr@gmail.com"}],"_npmUser":{"name":"timhall","email":"tim.hall.engr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-colors_5.0.0-beta.1_1578807402889_0.7486367584384133"},"_hasShrinkwrap":false},"5.0.0":{"name":"@timhall/ansi-colors","version":"5.0.0","license":"MIT","description":"Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jason Schilling","url":"https://sourecode.de"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan","url":"https://github.com/Silic0nS0ldier"},{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"}],"homepage":"https://github.com/timhall/ansi-colors","repository":{"type":"git","url":"git+https://github.com/timhall/ansi-colors.git"},"bugs":{"url":"https://github.com/timhall/ansi-colors/issues"},"keywords":["colors","console","terminal","ansi","chalk"],"main":"lib/ansi-colors.js","module":"lib/ansi-colors.es.js","types":"lib/ansi-colors.d.ts","scripts":{"build":"rollup -c","version":"npm run build","test":"jest","benchmark":"node bench","format":"prettier --write \"{src,bench,examples}/*.{ts,js}\""},"dependencies":{},"devDependencies":{"@babel/core":"^7.8.0","@babel/plugin-transform-modules-commonjs":"^7.8.0","@babel/plugin-transform-typescript":"^7.8.0","@babel/preset-typescript":"^7.8.0","@rollup/plugin-typescript":"^2.1.0","@types/jest":"^24.0.25","benchmark":"^2.1.4","chalk":"^3.0.0","jest":"^24.9.0","prettier":"^1.19.1","rollup":"^1.29.0","rollup-plugin-dts":"^1.2.0","tslib":"^1.10.0","typescript":"^3.7.4"},"prettier":{"singleQuote":true,"printWidth":100},"jest":{"moduleFileExtensions":["ts","js","json"],"testEnvironment":"node","testRegex":"(/__tests__/.*|(\\.|/)(test))\\.(js|ts)$"},"gitHead":"0de54cb181c2b41acd78bf2110b09e79a6799614","_id":"@timhall/ansi-colors@5.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5K8ifVHWALiQgxCRkjLLBmWJxS5N6TNPKfsEfnRgmZrJd6udsDRGK3PddyeLingVlXAJ4CDxz443Chj4rTG6xw==","shasum":"b29cd77d547ef7d8263c83627615905390b456a1","tarball":"https://registry.npmjs.org/@timhall/ansi-colors/-/ansi-colors-5.0.0.tgz","fileCount":6,"unpackedSize":23907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGrGfCRA9TVsSAnZWagAA1aAP/iWgXq5zWApIe1/1kCeU\nmYCeseF7jkQP64YuJ8Znz4gO+IcYcHmup23y1rSGV10OaPGOCuHBjnlQH12H\n2/c7wFq9uBbauhW2GJO85DCWMfBTemrj54fPgqJnKVxTV0ujssgeXMmKJP34\n15QoLfsVqauUaAIN6BiT0Jeq7WQWX4f55+BV9m4YqJFA6F9IPviBB/DN8eA4\nBFNt+fto20Ak9GHOt8R1+Go2mqdQBURDoVgACblOW43PEwgrYOjMMxKwuKoN\nVOP0M4d4OzD9xpZqzbplc7RLm1Pw4jJqms1IeIbB7twfK/uadZ1OC/ThBVwp\nQCvdl4uzArPTPB2CZ9+it+/Fzs7TYw3T5T2JjMWMU6lisoaE4PAnc/ixChKV\nKsuVpj9vpVsN9xW7B0A5OairVGtCf7UrWduY41FYKRkdjB4aVQ0Zbq4wfmtD\nEBysD5g/zTYsAEzSAxh/RCBShq9YXzVpCy7vskzIZ/7j/PQEoYmW/mwOOG8b\nIQLePLSvgWMbVBdriAH1iH/KvKFX+VFLL4HqMDdaLItxz9Zr9OhK+plSMnTN\n+fTkgWhYuNLIHhPMhDnxfFwVCbAfmxTSxHHSHSM4mF6ddTI5GzTtaAgTa0Oq\nQPPb5DeOZTOhU2UZ5c4CzZxUTU06yZyE8d8pVUf5dpcWkhqID1fqtmbGvOIe\nqCUE\r\n=F/io\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcwiXNwE3URPgKjzNkEQR9TGmZd3fBLBsvFqIBQy6x7QIhAN4forqGAjC/TBxOSeh+LEO00buOrkW/LhueqkU0wbDD"}]},"maintainers":[{"name":"timhall","email":"tim.hall.engr@gmail.com"}],"_npmUser":{"name":"timhall","email":"tim.hall.engr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-colors_5.0.0_1578807710715_0.36058424932315014"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-12T05:34:47.630Z","5.0.0-beta.0":"2020-01-12T05:34:47.825Z","modified":"2022-04-07T06:33:51.277Z","5.0.0-beta.1":"2020-01-12T05:36:43.038Z","5.0.0":"2020-01-12T05:41:50.888Z"},"maintainers":[{"name":"timhall","email":"tim.hall.engr@gmail.com"}],"description":"Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).","homepage":"https://github.com/timhall/ansi-colors","keywords":["colors","console","terminal","ansi","chalk"],"repository":{"type":"git","url":"git+https://github.com/timhall/ansi-colors.git"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jason Schilling","url":"https://sourecode.de"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan","url":"https://github.com/Silic0nS0ldier"},{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"}],"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"bugs":{"url":"https://github.com/timhall/ansi-colors/issues"},"license":"MIT","readme":"# @timhall/ansi-colors\n\n> Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).\n\nPlease consider following this project's original author, [Brian Woodward](https://github.com/doowb), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save ansi-colors\n```\n\n![image](https://user-images.githubusercontent.com/383994/39635445-8a98a3a6-4f8b-11e8-89c1-068c45d4fff8.png)\n\n## Why use this?\n\n@timhall/ansi-colors is _the smallest Node.js library for terminal styling_. A performant alternative to chalk, with no dependencies and designed to be tree-shakable.\n\n- _Small and Tree-shakable_\n- _Blazing fast_\n- _No dependencies_\n- _Safe_ - Does not modify the `String.prototype`.\n- Supports [nested colors](#nested-colors).\n- [Toggle color support](#toggle-color-support) on or off.\n\n## Usage\n\n```js\nconst c = require('ansi-colors');\n\nconsole.log(c.red('This is a red string!'));\nconsole.log(c.green('This is a red string!'));\nconsole.log(c.cyan('This is a cyan string!'));\nconsole.log(c.yellow('This is a yellow string!'));\n```\n\n![image](https://user-images.githubusercontent.com/383994/39653848-a38e67da-4fc0-11e8-89ae-98c65ebe9dcf.png)\n\n## Nested colors\n\n```js\nconsole.log(c.yellow(`foo ${c.red(c.bold('red'))} bar ${c.cyan('cyan')} baz`));\n```\n\n![image](https://user-images.githubusercontent.com/383994/39635817-8ed93d44-4f8c-11e8-8afd-8c3ea35f5fbe.png)\n\n## Toggle color support\n\nEasily enable/disable colors.\n\n```js\nconst c = require('ansi-colors');\n\n// disable colors manually\nc.enabled = false;\n\n// or use a library to automatically detect support\nc.enabled = require('color-support').hasBasic;\n\nconsole.log(c.red('I will only be colored red if the terminal supports colors'));\n```\n\n## Strip ANSI codes\n\nUse the `.stripColor` method to strip ANSI codes from a string.\n\n```js\nconsole.log(c.stripColor(c.blue(c.bold('foo bar baz'))));\n//=> 'foo bar baz'\n```\n\n## Available styles\n\n**Note** that bright and bright-background colors are not always supported.\n\n| Colors  | Background Colors | Bright Colors | Bright Background Colors |\n| ------- | ----------------- | ------------- | ------------------------ |\n| black   | bgBlack           | blackBright   | bgBlackBright            |\n| red     | bgRed             | redBright     | bgRedBright              |\n| green   | bgGreen           | greenBright   | bgGreenBright            |\n| yellow  | bgYellow          | yellowBright  | bgYellowBright           |\n| blue    | bgBlue            | blueBright    | bgBlueBright             |\n| magenta | bgMagenta         | magentaBright | bgMagentaBright          |\n| cyan    | bgCyan            | cyanBright    | bgCyanBright             |\n| white   | bgWhite           | whiteBright   | bgWhiteBright            |\n| gray    |                   |               |                          |\n| grey    |                   |               |                          |\n\n_(`gray` is the U.S. spelling, `grey` is more commonly used in the Canada and U.K.)_\n\n### Style modifiers\n\n- dim\n- **bold**\n\n- hidden\n- _italic_\n\n- underline\n- inverse\n- ~~strikethrough~~\n\n- reset\n\n## Performance\n\n**Libraries tested**\n\n- @timhall/ansi-colors v5.0.0\n- chalk v3.0.0\n\n### Mac\n\n> MacBook Pro, Intel Core i5, 1.4 GHz, 16 GB.\n\n**Load time**\n\nTime it takes to load the first time `require()` is called:\n\n- ansi-colors - `0.965ms`\n- chalk - `6.116ms`\n\n**Benchmarks**\n\n```\n# All Colors\n  ansi-colors x 529,231 ops/sec ±0.25% (92 runs sampled)\n  chalk x 557,332 ops/sec ±0.17% (98 runs sampled)\n\n# Nested colors\n  ansi-colors x 102,504 ops/sec ±0.42% (90 runs sampled)\n  chalk x 107,208 ops/sec ±0.23% (97 runs sampled)\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ yarn && yarn test\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n- [ansi-wrap](https://www.npmjs.com/package/ansi-wrap): Create ansi colors by passing the open and close codes. | [homepage](https://github.com/jonschlinkert/ansi-wrap 'Create ansi colors by passing the open and close codes.')\n- [strip-color](https://www.npmjs.com/package/strip-color): Strip ANSI color codes from a string. No dependencies. | [homepage](https://github.com/jonschlinkert/strip-color 'Strip ANSI color codes from a string. No dependencies.')\n","readmeFilename":"README.md"}