acorn-walk
npmv8.3.5TypeScriptECMAScript (ESTree) AST walker
Safe to adopt
Yes — acorn-walk scores well across adoption, maintenance, weight, supply chain, and licensing. 81.7M downloads per week and 3 known dependents. Last published 202 days ago. 2 releases in the last 2 years.
- AAdoption: grade A, Excellent.
81.7M downloads per week and 3 known dependents.
- BMaintenance: grade B, Good.
Last published 202 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 605 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-walk 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 acorn-walk, not just its own. Check this before a legal review, not after.
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-walk README.
import * as acorn from "acorn"
import * as walk from "acorn-walk"
walk.simple(acorn.parse("let x = 10"), {
Literal(node) {
console.log(`Found a literal: ${node.value}`)
}
})Dependencies
Declared by acorn-walk v8.3.5. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Used by
Popular packages that depend on acorn-walk.
Relationship graph
Dependencies (left) and dependents (right) of acorn-walk.
Frequently installed together
Native-ESM powered web dev build tool
TypeScript definitions for node
Lightweight Jest compatible spy implementation
TypeScript definitions for estree
Shared Vitest utility functions
Modify strings, generate sourcemaps
A JavaScript implementation of many web standards
Universal filesystem path utils
Public API for OpenTelemetry
Lexes ES modules returning their import/export metadata
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Low level bindings for creating Web Standard contexts.
Release history
1 release in the last two years, typically about 69 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.3.5latest | 6 months ago | 53 KB | MIT |
| 8.3.4 | 2 years ago | 51 KB | MIT |
| 8.3.3 | 2 years ago | 51 KB | MIT |
| 8.3.2 | 2 years ago | 51 KB | MIT |
| 8.3.1 | 2 years ago | 51 KB | MIT |
| 8.3.0 | 2 years ago | 51 KB | MIT |
| 8.2.0 | 5 years ago | 42 KB | MIT |
| 8.1.1 | 5 years ago | 42 KB | MIT |
| 8.1.0 | 5 years ago | 42 KB | MIT |
| 8.0.2 | 5 years ago | 99 KB | MIT |
| 8.0.1 | 5 years ago | 99 KB | MIT |
| 8.0.0 | 6 years ago | 98 KB | MIT |
| 7.2.0 | 6 years ago | 98 KB | MIT |
| 7.1.1 | 6 years ago | 97 KB | MIT |
| 7.1.0 | 6 years ago | 98 KB | MIT |
Overview
acorn-walk is an npm package that eCMAScript (ESTree) AST walker. It is extremely widely used, with about 81.7M downloads per week and 3 known dependents in the graph. The latest version is 8.3.5, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need eCMAScript (ESTree) AST walker 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 (81.7M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (1 direct dependencies).
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-walk?
Yes — acorn-walk scores well across adoption, maintenance, weight, supply chain, and licensing. 81.7M downloads per week and 3 known dependents. Last published 202 days ago. 2 releases in the last 2 years.
How do I install acorn-walk?
Run `npm install acorn-walk` to add acorn-walk to your npm project.
How many dependencies does acorn-walk have?
acorn-walk declares 1 direct dependency and pulls in 1 packages in total once its runtime tree is resolved totalling about 605 KB on disk.
What license is acorn-walk released under?
acorn-walk is distributed under the MIT license.
How popular is acorn-walk?
acorn-walk has approximately 81,692,360 downloads per week and 3 known dependent packages.
Is acorn-walk still maintained?
The most recent release of acorn-walk (v8.3.5) was published 6 months ago.
Does acorn-walk run install scripts?
No. acorn-walk does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.