Skip to content
JS
Package

rehype-pretty-code

Beautiful code for your MD/MDX docs.

v0.14.5, 25 Jul 2026MITESM onlyTypes: Bundled
$ npm install rehype-pretty-code

Key numbers

As of 25 Sept 2026
Weekly downloads
467.9k
+135% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
2 months ago
v0.14.5
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 696.1k (28 Jul 2026)Low 154k (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.

467,856 downloads last week, 2,332,623 in the last month. The 12-month change of +135% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
356 in total
Latest version
0.14.5, 25 Jul 20262 months ago
First published
7 Jan 2022
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v0 first release 0.0.1, 7 Jan 2022

Recent releases

VersionPublished
0.14.525 Jul 2026
0.14.46 Jul 2026
0.14.33 Mar 2026
0.14.114 Mar 2025
0.14.028 Aug 2024
0.13.214 May 2024
0.13.129 Mar 2024
0.13.08 Feb 2024
0.12.622 Jan 2024
0.12.517 Jan 2024
0.12.416 Jan 2024
0.12.319 Dec 2023
0.12.218 Dec 2023
0.12.18 Dec 2023
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
31 kB
Dependencies (6)
unified@types/hastrehype-parseunist-util-visithast-util-to-stringparse-numeric-range
Peer dependencies (1)
shiki
npm install rehype-pretty-code
  • jsDelivrhttps://cdn.jsdelivr.net/npm/rehype-pretty-code@0.14.5/
  • unpkghttps://unpkg.com/rehype-pretty-code@0.14.5/
  • esm.shhttps://esm.sh/rehype-pretty-code@0.14.5
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

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