Package
cardinal
Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 4.6m
- +42% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 8 years ago
- v2.1.1
- GitHub stars
- 174
- 18 forks
- Open issues / PRs
- 4 / 3
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
4,565,555 downloads last week, 21,870,815 in the last month. The 12-month change of +42% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 022 in total
- Latest version
- 2.1.1, 22 May 20188 years ago
- First published
- 21 Oct 2012
- Last push to GitHub
- 17 Jul 20202,261 days before the snapshot
- Repository archived
- No
- Open issues
- 4
- Open pull requests
- 3
- Commits, last 52 weeks
- 0
- Dependents on npm
- 212
Major versions
- v2 first release 2.0.0, 23 Apr 2018
- v1 first release 1.0.0, 30 Aug 2016
- v0 first release 0.1.0, 21 Oct 2012
Recent releases
| Version | Published |
|---|---|
| 2.1.1 | 22 May 2018 |
| 2.1.0 | 21 May 2018 |
| 2.0.1 | 23 Apr 2018 |
| 2.0.0 | 23 Apr 2018 |
| 1.0.0 | 30 Aug 2016 |
| 0.7.1 | 31 Mar 2016 |
| 0.7.0 | 29 Mar 2016 |
| 0.6.0 | 12 Nov 2015 |
| 0.5.0 | 4 Mar 2015 |
| 0.4.4 | 7 Jan 2014 |
| 0.4.3 | 15 Dec 2013 |
| 0.4.2 | 1 Aug 2013 |
| 0.4.1 | 31 Jul 2013 |
| 0.4.0 | 30 Jul 2013 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 64 kB
- Dependencies (2)
redeyedansicolors
npm install cardinal- jsDelivr
https://cdn.jsdelivr.net/npm/cardinal@2.1.1/ - unpkg
https://unpkg.com/cardinal@2.1.1/ - esm.sh
https://esm.sh/cardinal@2.1.1
Indexability: Indexed.