Skip to content
JS
Package

has-color

Detect whether a terminal supports color

v0.2.0, 24 Mar 2018MIT-Types: NoneCLI tools and terminal utilities
$ npm install has-color
Deprecated on npm
Renamed to `supports-color`

Key numbers

As of 25 Sept 2026
Weekly downloads
577.3k
-2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 years ago
v0.2.0
GitHub stars
371
93 forks
Open issues / PRs
3 / 0
Contributors
42
Commits, last 52 weeks
5

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 926.2k (21 Oct 2025)Low 310.1k (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.

577,327 downloads last week. 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
09 in total
Latest version
0.2.0, 24 Mar 20188 years ago
First published
3 Aug 2013
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
0
Commits, last 52 weeks
5
Dependents on npm
-

Major versions

  1. v0 first release 0.1.0, 3 Aug 2013

Recent releases

VersionPublished
0.2.024 Mar 2018
0.1.716 Apr 2014
0.1.611 Apr 2014
0.1.57 Apr 2014
0.1.48 Feb 2014
0.1.329 Jan 2014
0.1.23 Jan 2014
0.1.13 Aug 2013
0.1.03 Aug 2013
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
2.9 kB
Dependencies (0)
None
npm install has-color
  • jsDelivrhttps://cdn.jsdelivr.net/npm/has-color@0.2.0/
  • unpkghttps://unpkg.com/has-color@0.2.0/
  • esm.shhttps://esm.sh/has-color@0.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
ansi-256-colors11.6k-11 years ago--
colors-cli98.9k-2 years agoCommonJS-
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
xycolors11.6k-2 years agoESM + CommonJS-
ansi-gray1.8m-11 years agoCommonJS-
ansi-red1m-11 years agoCommonJS-
ansi-cyan884.9k-11 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.