Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
765 bytes
|
Line | |
---|
1 | # picocolors
|
---|
2 |
|
---|
3 | npm install picocolors
|
---|
4 |
|
---|
5 | A tinier and faster alternative to [nanocolors](https://github.com/ai/nanocolors). Andrey, are you even trying?
|
---|
6 |
|
---|
7 | ```javascript
|
---|
8 | import pc from "picocolors";
|
---|
9 |
|
---|
10 | console.log(pc.green(`How are ${pc.italic(`you`)} doing?`));
|
---|
11 | ```
|
---|
12 |
|
---|
13 | - Up to [2x faster and 2x smaller](#benchmarks) than alternatives
|
---|
14 | - 3x faster and 10x smaller than `chalk`
|
---|
15 | - [TypeScript](https://www.typescriptlang.org/) support
|
---|
16 | - [`NO_COLOR`](https://no-color.org/) friendly
|
---|
17 | - Node.js v6+ & browsers support
|
---|
18 | - The same API, but faster, much faster
|
---|
19 | - No `String.prototype` modifications (anyone still doing it?)
|
---|
20 | - No dependencies and the smallest `node_modules` footprint
|
---|
21 |
|
---|
22 | ## Docs
|
---|
23 | Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.