Skip to content
JS
Package

ansi-color

This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.

v0.2.2, 11 Dec 2025BSD LicenseCommonJSTypes: NoneCLI tools and terminal utilities
$ npm install ansi-color

Key numbers

As of 25 Sept 2026
Weekly downloads
549.5k
-2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 months ago
v0.2.2
GitHub stars
40
15 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (3 Mar 2026)Low 449.4k (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.

549,476 downloads last week, 2,821,142 in the last month. The 12-month change of -2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
12 in total
Latest version
0.2.2, 11 Dec 20259 months ago
First published
1 Jan 2015
Last push to GitHub
11 Dec 2025288 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
4
Dependents on npm
-

Major versions

  1. v0 first release 0.2.1, 1 Jan 2015

Recent releases

VersionPublished
0.2.211 Dec 2025
0.2.11 Jan 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
5.1 kB
Dependencies (0)
None
npm install ansi-color
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ansi-color@0.2.2/
  • unpkghttps://unpkg.com/ansi-color@0.2.2/
  • esm.shhttps://esm.sh/ansi-color@0.2.2
PackageWeekly downloadsGzipLast releaseModuleComparison
colorful39.6k-13 years ago--
kleur76.6m-4 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.