htc 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
..
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
picocolors.browser.js 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
picocolors.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
picocolors.js 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци
types.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 10 месеци

README.md

picocolors

npm install picocolors

A tinier and faster alternative to nanocolors. Andrey, are you even trying?

import pc from "picocolors";

console.log(pc.green(`How are ${pc.italic(`you`)} doing?`));
  • Up to 2x faster and 2x smaller than alternatives
  • 3x faster and 10x smaller than chalk
  • TypeScript support
  • NO_COLOR friendly
  • Node.js v6+ & browsers support
  • The same API, but faster, much faster
  • No String.prototype modifications (anyone still doing it?)
  • No dependencies and the smallest node_modules footprint

Docs

Read full docs on GitHub.