Skip to content
JS
Package

highlight.js

Syntax highlighting with language autodetection.

v11.12.0, 12 Aug 2026BSD-3-ClauseESM + CommonJSTypes: Bundled
$ npm install highlight.js

Key numbers

As of 25 Sept 2026
Weekly downloads
26.2m
+157% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v11.12.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 36.7m (25 Aug 2026)Low 6.9m (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.

26,227,626 downloads last week, 119,725,298 in the last month. The 12-month change of +157% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
298 in total
Latest version
11.12.0, 12 Aug 20261 month ago
First published
15 Jul 2011
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
7,890

Major versions

  1. v11 first release 11.0.0, 30 May 2021
  2. v10 first release 10.0.0, 21 Apr 2020
  3. v9 first release 9.0.0, 2 Dec 2015
  4. v8 first release 8.0.0, 9 Jan 2014
  5. v7 first release 7.0.1, 4 Jun 2012
  6. v1 first release 1.0.0, 15 Jul 2011

Recent releases

VersionPublished
11.12.012 Aug 2026
11.11.211 Aug 2026
11.11.125 Dec 2024
11.11.014 Dec 2024
11.10.06 Jul 2024
11.9.09 Oct 2023
11.8.029 Apr 2023
11.7.023 Nov 2022
11.6.013 Jul 2022
11.5.111 Apr 2022
11.5.012 Mar 2022
11.4.06 Jan 2022
11.3.117 Oct 2021
11.3.017 Oct 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12.0.0
Runtimes
-
Unpacked size (npm)
5.2 MB
Dependencies (0)
None
npm install highlight.js

CDN

jsDelivr: 8.8m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/highlight.js@11.12.0/
  • unpkghttps://unpkg.com/highlight.js@11.12.0/
  • esm.shhttps://esm.sh/highlight.js@11.12.0
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.