espree
npmv11.2.0TypeScriptAn Esprima-compatible JavaScript parser built on Acorn
Safe to adopt
Yes — espree scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 187 days ago. 7 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 187 days ago. 7 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 3 transitive packages, about 701 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
BSD-2-Clause — 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 espree 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.
Licenses in the dependency tree
Every license you inherit by installing espree, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^20.19.0 || ^22.13.0 || >=24
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the espree README.
import * as espree from "espree";
const ast = espree.parse(code);espree 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 |
|---|---|---|---|---|
| espreethis page | 0 | 4 | BSD-2-Clause | 6 months ago |
| esprima | 77.6M | 5 | BSD-2-Clause | 1 day ago |
| eslint | 138.4M | 279 | MIT | 1 day ago |
| esquery | 0 | 1 | BSD-3-Clause | 1 day ago |
| @babel/parser | 0 | 23 | MIT | 1 day ago |
| is-reference | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by espree v11.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on espree.
ECMAScript JS AST traversal functions
An AST-based pattern checker for JavaScript.
A JavaScript parser built from the Hermes engine
ECMAScript scope analyzer for ESLint
Relationship graph
Dependencies (left) and dependents (right) of espree.
Frequently installed together
Runtime typescript and ESM support for Node.js
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Constants and utilities about visitor keys to traverse AST.
TypeScript definitions for estree
An AST-based pattern checker for JavaScript.
Escape RegExp special characters
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run
Prettier is an opinionated code formatter
Helper utilities for creating ESLint configuration
ECMAScript parsing infrastructure for multipurpose analysis
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
Release history
5 releases in the last two years, typically about 70 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 11.2.0latest | 6 months ago | 93 KB | BSD-2-Clause |
| 11.1.1 | 6 months ago | 94 KB | BSD-2-Clause |
| 11.1.0 | 7 months ago | 106 KB | BSD-2-Clause |
| 11.0.0 | 10 months ago | 75 KB | BSD-2-Clause |
| 10.4.0 | 1 year ago | 78 KB | BSD-2-Clause |
| 10.3.0 | 1 year ago | 77 KB | BSD-2-Clause |
| 10.2.0 | 1 year ago | 77 KB | BSD-2-Clause |
| 10.1.0 | 2 years ago | 75 KB | BSD-2-Clause |
| 10.0.1 | 2 years ago | 72 KB | BSD-2-Clause |
| 10.0.0 | 2 years ago | 72 KB | BSD-2-Clause |
| 9.6.1 | 3 years ago | 72 KB | BSD-2-Clause |
| 9.6.0 | 3 years ago | 75 KB | BSD-2-Clause |
| 9.5.2 | 3 years ago | 75 KB | BSD-2-Clause |
| 9.5.1 | 3 years ago | 75 KB | BSD-2-Clause |
| 9.5.0 | 3 years ago | 75 KB | BSD-2-Clause |
Overview
espree is an npm package that an Esprima-compatible JavaScript parser built on Acorn. It has 4 known dependents in the graph. The latest version is 11.2.0, released under the BSD-2-Clause license.
Who should use it
Teams working in the npm ecosystem who need an Esprima-compatible JavaScript parser built on Acorn 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 (BSD-2-Clause).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use espree?
Yes — espree scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 187 days ago. 7 releases in the last 2 years.
How do I install espree?
Run `npm install espree` to add espree to your npm project.
How many dependencies does espree have?
espree declares 5 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 701 KB on disk.
What license is espree released under?
espree is distributed under the BSD-2-Clause license. Its dependency tree also includes: Apache-2.0, MIT.
How popular is espree?
npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on espree.
Is espree still maintained?
The most recent release of espree (v11.2.0) was published 6 months ago.
Does espree run install scripts?
No. espree does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.