Package
ansi-colors
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).
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 45.7m
- +39% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 4 years ago
- v4.1.3
- GitHub stars
- 454
- 36 forks
- Open issues / PRs
- 13 / 6
- Contributors
- 13
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
45,650,133 downloads last week, 199,817,966 in the last month. The 12-month change of +39% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 029 in total
- Latest version
- 4.1.3, 16 May 20224 years ago
- First published
- 30 Nov 2015
- Last push to GitHub
- 11 Jul 20221,536 days before the snapshot
- Repository archived
- No
- Open issues
- 13
- Open pull requests
- 6
- Commits, last 52 weeks
- 0
- Dependents on npm
- 2,553
Major versions
- v4 first release 4.0.1, 19 Jun 2019
- v3 first release 3.0.0, 16 Aug 2018
- v2 first release 2.0.0, 4 May 2018
- v1 first release 1.0.0, 6 Dec 2017
- v0 first release 0.1.0, 30 Nov 2015
Recent releases
| Version | Published |
|---|---|
| 4.1.3 | 16 May 2022 |
| 4.1.2 | 15 May 2022 |
| 4.1.1 | 3 Jul 2019 |
| 4.1.0 | 1 Jul 2019 |
| 4.0.1 | 19 Jun 2019 |
| 3.2.4 | 3 Mar 2019 |
| 3.2.3 | 8 Dec 2018 |
| 3.2.2 | 4 Dec 2018 |
| 3.2.1 | 22 Oct 2018 |
| 3.2.0 | 22 Oct 2018 |
| 3.1.0 | 28 Sept 2018 |
| 3.0.6 | 20 Sept 2018 |
| 3.0.5 | 24 Aug 2018 |
| 3.0.4 | 23 Aug 2018 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=6
- Runtimes
- -
- Unpacked size (npm)
- 26 kB
- Dependencies (0)
- None
npm install ansi-colors- jsDelivr
https://cdn.jsdelivr.net/npm/ansi-colors@4.1.3/ - unpkg
https://unpkg.com/ansi-colors@4.1.3/ - esm.sh
https://esm.sh/ansi-colors@4.1.3
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| ansi-gray | 1.8m | - | 11 years ago | CommonJS | - |
| yoctocolors | 28.1m | - | 1 month ago | ESM only | - |
| yoctocolors-cjs | 21.5m | - | 1 year ago | CommonJS | - |
| chalk | 411.5m | - | 1 month ago | ESM only | - |
| ansi-red | 1m | - | 11 years ago | CommonJS | - |
| ansi-cyan | 884.9k | - | 11 years ago | CommonJS | - |
| ansi-styles | 536.6m | - | 1 month ago | ESM only | - |
| slice-ansi | 84.5m | - | 6 days ago | ESM only | - |
Indexability: Indexed.