Skip to content
JS
Package

cjs-module-lexer

Lexes CommonJS modules, returning their named exports metadata

v2.2.1, 13 Aug 2026MITESM + CommonJSTypes: Bundled
$ npm install cjs-module-lexer

Key numbers

As of 25 Sept 2026
Weekly downloads
76.5m
+122% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v2.2.1
GitHub stars
262
31 forks
Open issues / PRs
13 / 6
Contributors
23
Commits, last 52 weeks
12

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 105.7m (25 Aug 2026)Low 23.4m (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.

76,531,750 downloads last week, 381,513,707 in the last month. The 12-month change of +122% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
348 in total
Latest version
2.2.1, 13 Aug 20261 month ago
First published
14 May 2020
Last push to GitHub
8 Sept 202616 days before the snapshot
Repository archived
No
Open issues
13
Open pull requests
6
Commits, last 52 weeks
12
Dependents on npm
860

Major versions

  1. v2 first release 2.0.0, 31 Jan 2025
  2. v1 first release 1.0.0, 2 Nov 2020
  3. v0 first release 0.1.0, 14 May 2020

Recent releases

VersionPublished
2.2.113 Aug 2026
2.2.02 Jan 2026
2.1.17 Nov 2025
2.1.020 Feb 2025
2.0.031 Jan 2025
1.4.330 Jan 2025
1.4.230 Jan 2025
1.4.17 Sept 2024
1.4.025 Aug 2024
1.3.128 Apr 2024
1.3.027 Apr 2024
1.2.310 Jun 2023
1.2.215 Jul 2021
1.2.129 Apr 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
137 kB
Dependencies (0)
None
npm install cjs-module-lexer
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cjs-module-lexer@2.2.1/
  • unpkghttps://unpkg.com/cjs-module-lexer@2.2.1/
  • esm.shhttps://esm.sh/cjs-module-lexer@2.2.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.