{"name":"chalk","description":"Terminal string styling done right","dist-tags":{"latest":"5.0.1"},"versions":{"4.1.2":{"name":"chalk","version":"4.1.2","description":"Terminal string styling done right","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chalk/chalk.git"},"funding":"https://github.com/chalk/chalk?sponsor=1","main":"source","engines":{"node":">=10"},"scripts":{"test":"xo && nyc ava && tsd","bench":"matcha benchmark.js"},"dependencies":{"ansi-styles":"^4.1.0","supports-color":"^7.1.0"},"devDependencies":{"ava":"^2.4.0","coveralls":"^3.0.7","execa":"^4.0.0","import-fresh":"^3.1.0","matcha":"^0.7.0","nyc":"^15.0.0","resolve-from":"^5.0.0","tsd":"^0.7.4","xo":"^0.28.2"},"xo":{"rules":{"unicorn/prefer-string-slice":"off","unicorn/prefer-includes":"off","@typescript-eslint/member-ordering":"off","no-redeclare":"off","unicorn/string-content":"off","unicorn/better-regex":"off"}},"gitHead":"95d74cbe8d3df3674dec1445a4608d3288d8b73c","bugs":{"url":"https://github.com/chalk/chalk/issues"},"_id":"chalk@4.1.2","_nodeVersion":"12.22.1","_npmVersion":"7.5.4","dist":{"integrity":"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==","shasum":"aac4e2b7734a740867aeb16bf02aad556a1e7a01","tarball":"http://localhost:4260/chalk/chalk-4.1.2.tgz","fileCount":7,"unpackedSize":35047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhA+psCRA9TVsSAnZWagAAaj8QAIsfB8+2kMsY5OUrDEqr\nqbznQ57bFD3ArrUSvhg+03aVEQV8fwgQHZtDC4KUSFuZGw/1l+3A+GFxvK68\nMM9SOD7jMNy1BUfzrfi0M2TR+V4pNjqJl+/ePQlgQ1SYzCZ+JpMUXdwkiV6r\nYzXuyObH6lJHPvdch+ynLSIYsQHHCDEe1qKEsdZXJzEAOc51a17ymlt+HdGg\nYZKENPA80H6h1bxOwf74i6uUNOYRLucAjDDuZX+cBxzILh9HOzl1MLRSgEJR\nD8Yl212H5+02bZb2Mhlrl+iFcfaPwz/CWWFxTW3dFoaAEVpiK+g06vlVKR+4\nIagsh89hAyWLl4mc661vycKi+WdhVQ275bzjtnzmti4E2CKVevksJS6aJKKo\nrtgAVlI0XEWDfduEEH3Bh/MfazmRl2BlKtKQoWmQjnj8ydydEchk2nN0N8cd\nnshOuqhOVtRoCROOUBIZHP84cy7teK0HDNKypv1Lu/43F3pZl12fJNPuo+zA\nGSjCke6YI6GFn0NkZ403iMQnOb8bF/nyQwVNUf/0DXEP3wNJbGyXyrY3HLeY\nleZa/LuXwt/4dXs5+g8RlaMjcqIukABwEwpsqX8G/ASaW9Do6VuwRqD7fva+\nXQCIebFDLUTbtAbI4L0qIqIDPCxvXR67m/j0fzHvzjGDwQzOlL2Og10rI0ZT\nmil5\r\n=FyBn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4dG0uJ9LWDhLIbBJazgFGOYD+6u8gUvOP/yfEluvstAIhAK7GZOqN8KY0Alry2lZ2MBIvWjuEGISyqHydp9oFrw22"}]},"directories":{},"_hasShrinkwrap":false},"5.0.1":{"name":"chalk","version":"5.0.1","description":"Terminal string styling done right","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chalk/chalk.git"},"funding":"https://github.com/chalk/chalk?sponsor=1","type":"module","main":"./source/index.js","exports":"./source/index.js","imports":{"#ansi-styles":"./source/vendor/ansi-styles/index.js","#supports-color":{"node":"./source/vendor/supports-color/index.js","default":"./source/vendor/supports-color/browser.js"}},"types":"./source/index.d.ts","engines":{"node":"^12.17.0 || ^14.13 || >=16.0.0"},"scripts":{"test":"xo && c8 ava && tsd","bench":"matcha benchmark.js"},"devDependencies":{"@types/node":"^16.11.10","ava":"^3.15.0","c8":"^7.10.0","color-convert":"^2.0.1","execa":"^6.0.0","log-update":"^5.0.0","matcha":"^0.7.0","tsd":"^0.19.0","xo":"^0.47.0","yoctodelay":"^2.0.0"},"xo":{"rules":{"unicorn/prefer-string-slice":"off"}},"c8":{"reporter":["text","lcov"],"exclude":["source/vendor"]},"gitHead":"bccde97f8a1bb125d4fe99e8fd355182101ff4f2","bugs":{"url":"https://github.com/chalk/chalk/issues"},"_id":"chalk@5.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==","shasum":"ca57d71e82bb534a296df63bbacc4a1c22b2a4b6","tarball":"http://localhost:4260/chalk/chalk-5.0.1.tgz","fileCount":12,"unpackedSize":41336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ6QUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR4hAAkZ1Pzo7shU7iLgAUqhpUI79vsAQoqkKYBv9iC+Z4ogWUlcd0\r\nRmauMjugcrKH6fsokqp9jDuJLiZSAbj7nwbmWDoBR9XRrxedjsB2H0eANVlC\r\nTAecFxGdN4gxEBzE6yVOfJelpNuw2qWstXKwOZmLwZkTlqE9LETYWO7xmzfs\r\nUW42alsTOP78ZYRnUWwkeZr3Z8yt7thGUwIi9q+QFsDIt0VwE86uTLeLvv+6\r\npNI04MyKzNkKRG+PF8uW+O+j5PYIr9BPYY++g+f+rayFdwSYcoQjutF0BHdj\r\nG+7DGTrk+dhzCJ5xLSZY0rljcgyY9/KMSj+3rO7fUJalPIpqbwLClmMtfJQU\r\n2MmdM+dJfsXAfoZA5rMxP3GoOC8LC6RaScliVivockrCSJgd9Tp9KzRt+66I\r\nqNiuztSypB5SRB7TC41S8jvIHDw5PNNnNP5C7E/uBjU35yc6aX/2pyxUeXYm\r\nAOPLmVWqBcroBiE4zi4OmG1fB2Izw9DJsK31i2U98lkMLfkVaUa4tIBgVwbU\r\nkB62F3BA86yYuWucYeZL3hp9H1TG5+WBhs9+lHrb0+mH3b6ab2lZu/uCWvH6\r\nSedXquHHQxyM9JcuxDrDtmELqR87B+h0iAKzBf7KYtmyrqrxpHE0FiteQsV9\r\nUJbfD3SPAaX/IBAryNeP4Q4e/oSQDy3YUuI=\r\n=ZFqY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8zpu4flQt9Ck8M+VS0lz3b8mdY12JcKsCNaVK+2pY1AiEA4+L33unqlFikjPh1wCQQcPQ5jOpz9l5PGjjp1ERb/GA="}]},"directories":{},"_hasShrinkwrap":false}},"readme":"

\n\t
\n\t
\n\t\"Chalk\"\n\t
\n\t
\n\t
\n

\n\n> Terminal string styling done right\n\n[![Coverage Status](https://codecov.io/gh/chalk/chalk/branch/main/graph/badge.svg)](https://codecov.io/gh/chalk/chalk)\n[![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk)\n[![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk)\n[![Support Chalk on DEV](https://badge.devprotocol.xyz/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15/descriptive)](https://stakes.social/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15)\n\n\n\n
\n\n---\n\n
\n\t

\n\t\t

\n\t\t\t\n\t\t\t\tSindre Sorhus' open source work is supported by the community on GitHub Sponsors and Dev\n\t\t\t\n\t\t

\n\t\tSpecial thanks to:\n\t\t
\n\t\t
\n\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t
\n\t\t\t\t\"Doppler\"\n\t\t\t
\n\t\t\tAll your environment variables, in one place\n\t\t\t
\n\t\t\t\tStop struggling with scattered API keys, hacking together home-brewed tools,\n\t\t\t\t
\n\t\t\t\tand avoiding access controls. Keep your team and servers in sync with Doppler.\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\n\t\t\t
\n\t\t\t\t\"Strapi\"\n\t\t\t
\n\t\t\tStrapi is the leading open-source headless CMS.\n\t\t\t
\n\t\t\t\tIt’s 100% JavaScript, fully customizable, and developer-first.\n\t\t\t
\n\t\t
\n\t

\n
\n\n---\n\n
\n\n## Highlights\n\n- Expressive API\n- Highly performant\n- No dependencies\n- Ability to nest styles\n- [256/Truecolor color support](#256-and-truecolor-color-support)\n- Auto-detects color support\n- Doesn't extend `String.prototype`\n- Clean and focused\n- Actively maintained\n- [Used by ~76,000 packages](https://www.npmjs.com/browse/depended/chalk) as of October 26, 2021\n\n## Install\n\n```sh\nnpm install chalk\n```\n\n**IMPORTANT:** Chalk 5 is ESM. If you want to use Chalk with TypeScript or a build tool, you will probably want to use Chalk 4 for now. [Read more.](https://github.com/chalk/chalk/releases/tag/v5.0.0)\n\n## Usage\n\n```js\nimport chalk from 'chalk';\n\nconsole.log(chalk.blue('Hello world!'));\n```\n\nChalk comes with an easy to use composable API where you just chain and nest the styles you want.\n\n```js\nimport chalk from 'chalk';\n\nconst log = console.log;\n\n// Combine styled and normal strings\nlog(chalk.blue('Hello') + ' World' + chalk.red('!'));\n\n// Compose multiple styles using the chainable API\nlog(chalk.blue.bgRed.bold('Hello world!'));\n\n// Pass in multiple arguments\nlog(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'));\n\n// Nest styles\nlog(chalk.red('Hello', chalk.underline.bgBlue('world') + '!'));\n\n// Nest styles of the same type even (color, underline, background)\nlog(chalk.green(\n\t'I am a green line ' +\n\tchalk.blue.underline.bold('with a blue substring') +\n\t' that becomes green again!'\n));\n\n// ES2015 template literal\nlog(`\nCPU: ${chalk.red('90%')}\nRAM: ${chalk.green('40%')}\nDISK: ${chalk.yellow('70%')}\n`);\n\n// Use RGB colors in terminal emulators that support it.\nlog(chalk.rgb(123, 45, 67).underline('Underlined reddish color'));\nlog(chalk.hex('#DEADED').bold('Bold gray!'));\n```\n\nEasily define your own themes:\n\n```js\nimport chalk from 'chalk';\n\nconst error = chalk.bold.red;\nconst warning = chalk.hex('#FFA500'); // Orange color\n\nconsole.log(error('Error!'));\nconsole.log(warning('Warning!'));\n```\n\nTake advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args):\n\n```js\nimport chalk from 'chalk';\n\nconst name = 'Sindre';\nconsole.log(chalk.green('Hello %s'), name);\n//=> 'Hello Sindre'\n```\n\n## API\n\n### chalk.`