esm-env
npmv1.2.2TypeScriptUses export conditions to return environment information in a way that works with major bundlers and runtimes.
Overview
esm-env is an npm package that uses export conditions to return environment information in a way that works with major bundlers and runtimes. It is very popular, with about 6.1M downloads per week and 1 known dependents in the graph. The latest version is 1.2.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need uses export conditions to return environment information in a way that works with major bundlers and runtimes and value a battle-tested, widely-adopted 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
- Large, well-established user base (6.1M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of esm-env.
Used by
Popular packages that depend on esm-env.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
Encode/decode sourcemap mappings
Modify strings, generate sourcemaps
Programmatic access to the ARIA specification
Remap sequential sourcemaps through transformations to point at the original source code
A tiny (239B) utility for constructing className strings conditionally.
Next generation testing framework powered by Vite
Programmatic access to information about the AXObject Model
TypeScript definitions for trusted-types
Determine whether an AST node is a reference
Gets the job done when JSON.stringify can't
Parse in reverse
Version history
| Version | Published | License |
|---|---|---|
| 1.2.2latest | 1 year ago | MIT |
| 1.2.1 | 1 year ago | MIT |
| 1.2.0 | 1 year ago | MIT |
| 1.1.4 | 1 year ago | MIT |
| 1.1.3 | 1 year ago | MIT |
| 1.1.2 | 1 year ago | MIT |
| 1.1.1 | 1 year ago | MIT |
| 1.1.0 | 1 year ago | MIT |
| 1.0.0 | 3 years ago | MIT |
Maintainers
Frequently asked questions
How do I install esm-env?
Run `npm install esm-env` to add esm-env to your npm project.
What license is esm-env released under?
esm-env is distributed under the MIT license.
How popular is esm-env?
esm-env has approximately 6,144,807 downloads per week and 1 known dependent packages.