</>PackageGraphPackageGraph

acorn

npmv8.18.0TypeScript

ECMAScript parser

Safe to adopt

Yes — acorn scores well across adoption, maintenance, weight, supply chain, and licensing. 221.9M downloads per week and 19 known dependents. Last published 44 days ago. 7 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    221.9M downloads per week and 19 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 44 days ago. 7 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 552 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • 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 acorn 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.

552 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
node >=0.4.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the acorn README.

import * as acorn from "acorn"

Used by

Popular packages that depend on acorn.

axiosnpm

Promise based HTTP client for the browser and node.js

106.5M/wk4 dependentsMITTS
vitestnpm

Next generation testing framework powered by Vite

92.7M/wk129 dependentsMITTS
acorn-walknpm

ECMAScript (ESTree) AST walker

70.4M/wk3 dependentsMITTS
webpacknpm

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

49.8M/wk29 dependentsMITTS
ts-nodenpm

TypeScript execution environment and REPL for node.js, with source map support

42.2M/wk38 dependentsMITTS
mllynpm

Missing ECMAScript module utils for Node.js

25.1M/wk7 dependentsMITTS
acorn-import-phasesnpm

Support for `import <defer|source>` phase syntax in Acorn

24.2M/wk1 dependentsMITTS
ast-v8-to-istanbulnpm

AST-aware v8-to-istanbul

23.2M/wk1 dependentsMITTS
sveltenpm

Cybernetically enhanced web apps

4.1M/wk1 dependentsMITTS
acorn-loosenpm

Error-tolerant ECMAScript parser

0/wk1 dependentsMITTS
escodegennpm

ECMAScript code generator

0/wk1 dependentsBSD-2-Clause
esrapnpm

Parse in reverse

0/wk1 dependentsMITTS
is-referencenpm

Determine whether an AST node is a reference

0/wk1 dependentsMITTS
@sveltejs/acorn-typescriptnpm

Acorn plugin that parses TypeScript

0/wk2 dependentsMITTS
espreenpm

An Esprima-compatible JavaScript parser built on Acorn

0/wk4 dependentsBSD-2-ClauseTS
jitinpm

Runtime typescript and ESM support for Node.js

0/wk15 dependentsMITTS
acorn-jsxnpm

Modern, fast React.js JSX parser

0/wk2 dependentsMIT
colorjs.ionpm

Let’s get serious about color

0/wk4 dependentsMITTS
promisenpm

Bare bones Promises/A+ implementation

0/wk5 dependentsMIT

Relationship graph

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

Frequently installed together

Release history

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

Recent versions of acorn
VersionPublishedSizeLicense
8.18.0latest1 month ago552 KBMIT
8.17.03 months ago550 KBMIT
8.16.06 months ago546 KBMIT
8.15.01 year ago542 KBMIT
8.14.11 year ago535 KBMIT
8.14.01 year ago534 KBMIT
8.13.01 year ago526 KBMIT
8.12.12 years ago525 KBMIT
8.12.02 years ago525 KBMIT
8.11.32 years ago519 KBMIT
8.11.22 years ago518 KBMIT
8.11.12 years ago518 KBMIT
8.11.02 years ago518 KBMIT
8.10.03 years ago482 KBMIT
8.9.03 years ago481 KBMIT

Overview

acorn is an npm package that eCMAScript parser. It is extremely widely used, with about 221.9M downloads per week and 19 known dependents in the graph. The latest version is 8.18.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need eCMAScript parser 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 (221.9M 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.

Maintainers

Frequently asked questions

Should I use acorn?

Yes — acorn scores well across adoption, maintenance, weight, supply chain, and licensing. 221.9M downloads per week and 19 known dependents. Last published 44 days ago. 7 releases in the last 2 years.

How do I install acorn?

Run `npm install acorn` to add acorn to your npm project.

What license is acorn released under?

acorn is distributed under the MIT license.

How popular is acorn?

acorn has approximately 221,927,287 downloads per week and 19 known dependent packages.

Is acorn still maintained?

The most recent release of acorn (v8.18.0) was published 1 month ago.

Does acorn run install scripts?

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