Skip to content
JS
Package

cardinal

Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.

v2.1.1, 22 May 2018MITCommonJSTypes: NoneCLI tools and terminal utilities
$ npm install cardinal

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
02m4m6m8mSept 2025Mar 2026Sept 2026High 6.1m (25 Aug 2026)Low 1.8m (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.

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

  1. v2 first release 2.0.0, 23 Apr 2018
  2. v1 first release 1.0.0, 30 Aug 2016
  3. v0 first release 0.1.0, 21 Oct 2012

Recent releases

VersionPublished
2.1.122 May 2018
2.1.021 May 2018
2.0.123 Apr 2018
2.0.023 Apr 2018
1.0.030 Aug 2016
0.7.131 Mar 2016
0.7.029 Mar 2016
0.6.012 Nov 2015
0.5.04 Mar 2015
0.4.47 Jan 2014
0.4.315 Dec 2013
0.4.21 Aug 2013
0.4.131 Jul 2013
0.4.030 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cardinal@2.1.1/
  • unpkghttps://unpkg.com/cardinal@2.1.1/
  • esm.shhttps://esm.sh/cardinal@2.1.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.