Package
has-color
Detect whether a terminal supports 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
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
- v0 first release 0.1.0, 3 Aug 2013
Recent releases
| Version | Published |
|---|---|
| 0.2.0 | 24 Mar 2018 |
| 0.1.7 | 16 Apr 2014 |
| 0.1.6 | 11 Apr 2014 |
| 0.1.5 | 7 Apr 2014 |
| 0.1.4 | 8 Feb 2014 |
| 0.1.3 | 29 Jan 2014 |
| 0.1.2 | 3 Jan 2014 |
| 0.1.1 | 3 Aug 2013 |
| 0.1.0 | 3 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- jsDelivr
https://cdn.jsdelivr.net/npm/has-color@0.2.0/ - unpkg
https://unpkg.com/has-color@0.2.0/ - esm.sh
https://esm.sh/has-color@0.2.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| ansi-256-colors | 11.6k | - | 11 years ago | - | - |
| colors-cli | 98.9k | - | 2 years ago | CommonJS | - |
| yoctocolors | 28.1m | - | 1 month ago | ESM only | - |
| yoctocolors-cjs | 21.5m | - | 1 year ago | CommonJS | - |
| xycolors | 11.6k | - | 2 years ago | ESM + CommonJS | - |
| ansi-gray | 1.8m | - | 11 years ago | CommonJS | - |
| ansi-red | 1m | - | 11 years ago | CommonJS | - |
| ansi-cyan | 884.9k | - | 11 years ago | CommonJS | - |
Indexability: Not indexed (discovery only): deprecated.