d3314c4bdce1f6b11312875039c8821fea443555f784f25311d82755a1f7c7a9f1cfb46e547fa0e1db59cd95b128539ebeb63fc5cba163ec6ef1985b2bed65 765 B

1234567891011121314151617181920212223
  1. # picocolors
  2. npm install picocolors
  3. A tinier and faster alternative to [nanocolors](https://github.com/ai/nanocolors). Andrey, are you even trying?
  4. ```javascript
  5. import pc from "picocolors";
  6. console.log(pc.green(`How are ${pc.italic(`you`)} doing?`));
  7. ```
  8. - Up to [2x faster and 2x smaller](#benchmarks) than alternatives
  9. - 3x faster and 10x smaller than `chalk`
  10. - [TypeScript](https://www.typescriptlang.org/) support
  11. - [`NO_COLOR`](https://no-color.org/) friendly
  12. - Node.js v6+ & browsers support
  13. - The same API, but faster, much faster
  14. - No `String.prototype` modifications (anyone still doing it?)
  15. - No dependencies and the smallest `node_modules` footprint
  16. ## Docs
  17. Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.