</>PackageGraphPackageGraph

es-module-lexer

npmv3.0.2TypeScript

Lexes ES modules returning their import/export metadata

Safe to adopt

Yes — es-module-lexer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 2 days ago. 11 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 2 days ago. 11 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 236 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding es-module-lexer to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

236 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the es-module-lexer README.

import { parse } from 'es-module-lexer/js';

Dependencies

Declared by es-module-lexer v3.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (10)

@babel/cli ^7.29.7@babel/core ^7.29.7@babel/plugin-transform-modules-commonjs ^7.29.7@swc/cli ^0.8.1@swc/core ^1.16.2@types/node ^26.4.1kleur ^4.1.5mocha ^11.8.0terser ^5.51.2typescript ^7.0.2

Used by

Popular packages that depend on es-module-lexer.

Relationship graph

Dependencies (left) and dependents (right) of es-module-lexer.

vitevitestwebpack@vitest/mockerjest-runtimees-module-lexer
es-module-lexer dependencies dependents

Frequently installed together

Release history

11 releases in the last two years, typically about 33 days apart.

Recent versions of es-module-lexer
VersionPublishedSizeLicense
3.0.2latest2 days ago236 KBMIT
3.0.13 days ago235 KBMIT
3.0.03 days ago234 KBMIT
2.3.224 days ago171 KBMIT
2.3.12 months ago168 KBMIT
2.3.02 months ago167 KBMIT
2.2.02 months ago108 KBMIT
2.1.04 months ago98 KBMIT
2.0.09 months ago95 KBMIT
1.7.01 year ago91 KBMIT
1.6.01 year ago89 KBMIT
1.5.42 years ago89 KBMIT
1.5.32 years ago89 KBMIT
1.5.22 years ago89 KBMIT
1.5.12 years ago89 KBMIT

Overview

es-module-lexer is an npm package that lexes ES modules returning their import/export metadata. It has 5 known dependents in the graph. The latest version is 3.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need lexes ES modules returning their import/export metadata and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use es-module-lexer?

Yes — es-module-lexer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 2 days ago. 11 releases in the last 2 years.

How do I install es-module-lexer?

Run `npm install es-module-lexer` to add es-module-lexer to your npm project.

What license is es-module-lexer released under?

es-module-lexer is distributed under the MIT license.

How popular is es-module-lexer?

npm does not publish download counts. Within PackageGraph's crawl, 5 known packages depend on es-module-lexer.

Is es-module-lexer still maintained?

The most recent release of es-module-lexer (v3.0.2) was published 2 days ago.

Does es-module-lexer run install scripts?

No. es-module-lexer does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.