esm
npmv3.2.25Tomorrow's ECMAScript modules today!
Not recommended for new projects
No — esm should not be adopted for new projects. Last published 2673 days ago.
- AAdoption: grade A, Excellent.
6.2M downloads per week and 5 known dependents.
- FMaintenance: grade F, Failing.
Last published 2673 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 301 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 esm to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=6
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
esm vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| esmthis page | 6.2M | 5 | MIT | 7 years ago |
| tsx | 61.9M | 26 | MIT | 1 day ago |
| import-local | 0 | 2 | MIT | 1 day ago |
| import-fresh | 0 | 2 | MIT | 1 day ago |
| resolve | 0 | 2 | MIT | 1 day ago |
| @humanwhocodes/module-importer | 0 | 1 | Apache-2.0 | 1 day ago |
Used by
Popular packages that depend on esm.
A tiny (183B to 210B) and fast utility to ascend parent directories
A tiny (195B to 220B) utility to recursively list all (total) files in a directory
A tiny (239B) utility for constructing className strings conditionally.
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
A tiny (304B to 489B) utility for check for deep equality
Relationship graph
Dependencies (left) and dependents (right) of esm.
Frequently installed together
the complete solution for node.js command-line programs
Lodash modular utilities.
An AST-based pattern checker for JavaScript.
A tiny (183B to 210B) and fast utility to ascend parent directories
Prettier is an opinionated code formatter
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
PostgreSQL client - pure javascript & libpq with the same API
TypeScript execution environment and REPL for node.js, with source map support
Functions for dealing with a PostgreSQL connection string
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Parse CLI arguments.
The fastest and simplest library for SQLite in Node.js.
Release history
No releases in the last two years, typically about 2 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.2.25latest | 7 years ago | 301 KB | MIT |
| 3.2.24 | 7 years ago | 301 KB | MIT |
| 3.2.23 | 7 years ago | 301 KB | MIT |
| 3.2.22 | 7 years ago | 300 KB | MIT |
| 3.2.21 | 7 years ago | 299 KB | MIT |
| 3.2.20 | 7 years ago | 295 KB | MIT |
| 3.2.19 | 7 years ago | 295 KB | MIT |
| 3.2.18 | 7 years ago | 295 KB | MIT |
| 3.2.17 | 7 years ago | 295 KB | MIT |
| 3.2.16 | 7 years ago | 294 KB | MIT |
| 3.2.15 | 7 years ago | 294 KB | MIT |
| 3.2.14 | 7 years ago | 294 KB | MIT |
| 3.2.13 | 7 years ago | 293 KB | MIT |
| 3.2.12 | 7 years ago | 292 KB | MIT |
| 3.2.11 | 7 years ago | 292 KB | MIT |
Overview
esm is an npm package that tomorrow's ECMAScript modules today!. It is extremely widely used, with about 6.2M downloads per week and 5 known dependents in the graph. The latest version is 3.2.25, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need tomorrow's ECMAScript modules today! and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (6.2M weekly downloads).
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use esm?
No — esm should not be adopted for new projects. Last published 2673 days ago.
How do I install esm?
Run `npm install esm` to add esm to your npm project.
What license is esm released under?
esm is distributed under the MIT license.
How popular is esm?
esm has approximately 6,249,822 downloads per week and 5 known dependent packages.
Is esm still maintained?
The most recent release of esm (v3.2.25) was published 7 years ago.
Does esm run install scripts?
No. esm does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.