Skip to content
JS
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).

v4.1.3, 16 May 2022MITCommonJSTypes: BundledCLI tools and terminal utilitiesLogging
$ npm install ansi-colors

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
020m40m60m80mSept 2025Mar 2026Sept 2026High 61.1m (25 Aug 2026)Low 18.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v4 first release 4.0.1, 19 Jun 2019
  2. v3 first release 3.0.0, 16 Aug 2018
  3. v2 first release 2.0.0, 4 May 2018
  4. v1 first release 1.0.0, 6 Dec 2017
  5. v0 first release 0.1.0, 30 Nov 2015

Recent releases

VersionPublished
4.1.316 May 2022
4.1.215 May 2022
4.1.13 Jul 2019
4.1.01 Jul 2019
4.0.119 Jun 2019
3.2.43 Mar 2019
3.2.38 Dec 2018
3.2.24 Dec 2018
3.2.122 Oct 2018
3.2.022 Oct 2018
3.1.028 Sept 2018
3.0.620 Sept 2018
3.0.524 Aug 2018
3.0.423 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ansi-colors@4.1.3/
  • unpkghttps://unpkg.com/ansi-colors@4.1.3/
  • esm.shhttps://esm.sh/ansi-colors@4.1.3
PackageWeekly downloadsGzipLast releaseModuleComparison
ansi-gray1.8m-11 years agoCommonJS-
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
chalk411.5m-1 month agoESM only-
ansi-red1m-11 years agoCommonJS-
ansi-cyan884.9k-11 years agoCommonJS-
ansi-styles536.6m-1 month agoESM only-
slice-ansi84.5m-6 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.