</>PackageGraphPackageGraph

espree

npmv11.2.0TypeScript

An 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.

3
Direct dependencies

Runtime packages this one declares itself.

3
Total installed

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

701 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

Apache-2.0MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
espreethis page04BSD-2-Clause6 months ago
esprima77.6M5BSD-2-Clause1 day ago
eslint138.4M279MIT1 day ago
esquery01BSD-3-Clause1 day ago
@babel/parser023MIT1 day ago
is-reference01MIT1 day ago

Dependencies

Declared by espree v11.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

shelljs ^0.8.5tsd ^0.33.0

Used by

Popular packages that depend on espree.

Relationship graph

Dependencies (left) and dependents (right) of espree.

Frequently installed together

jitinpm

Runtime typescript and ESM support for Node.js

0/wk15 dependentsMITTS
chainpm

BDD/TDD assertion library for node.js and the browser. Test framework agnostic.

0/wk57 dependentsMIT
eslint-visitor-keysnpm

Constants and utilities about visitor keys to traverse AST.

340.8M/wk4 dependentsApache-2.0TS
@types/estreenpm

TypeScript definitions for estree

152.1M/wk12 dependentsMITTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
escape-string-regexpnpm

Escape RegExp special characters

316.5M/wk8 dependentsMIT
is-globnpm

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

137.4M/wk3 dependentsMIT
file-entry-cachenpm

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

134.5M/wk1 dependentsMITTS
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
@eslint/config-helpersnpm

Helper utilities for creating ESLint configuration

96M/wk1 dependentsApache-2.0TS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

72.1M/wk1 dependentsMIT

Release history

5 releases in the last two years, typically about 70 days apart.

Recent versions of espree
VersionPublishedSizeLicense
11.2.0latest6 months ago93 KBBSD-2-Clause
11.1.16 months ago94 KBBSD-2-Clause
11.1.07 months ago106 KBBSD-2-Clause
11.0.010 months ago75 KBBSD-2-Clause
10.4.01 year ago78 KBBSD-2-Clause
10.3.01 year ago77 KBBSD-2-Clause
10.2.01 year ago77 KBBSD-2-Clause
10.1.02 years ago75 KBBSD-2-Clause
10.0.12 years ago72 KBBSD-2-Clause
10.0.02 years ago72 KBBSD-2-Clause
9.6.13 years ago72 KBBSD-2-Clause
9.6.03 years ago75 KBBSD-2-Clause
9.5.23 years ago75 KBBSD-2-Clause
9.5.13 years ago75 KBBSD-2-Clause
9.5.03 years ago75 KBBSD-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

Keywords

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.