</>PackageGraphPackageGraph

acorn-walk

npmv8.3.5TypeScript

ECMAScript (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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

605 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

MIT

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.

acornvitestts-node@vitest/mockeracorn-walk
acorn-walk dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 69 days apart.

Recent versions of acorn-walk
VersionPublishedSizeLicense
8.3.5latest6 months ago53 KBMIT
8.3.42 years ago51 KBMIT
8.3.32 years ago51 KBMIT
8.3.22 years ago51 KBMIT
8.3.12 years ago51 KBMIT
8.3.02 years ago51 KBMIT
8.2.05 years ago42 KBMIT
8.1.15 years ago42 KBMIT
8.1.05 years ago42 KBMIT
8.0.25 years ago99 KBMIT
8.0.15 years ago99 KBMIT
8.0.06 years ago98 KBMIT
7.2.06 years ago98 KBMIT
7.1.16 years ago97 KBMIT
7.1.06 years ago98 KBMIT

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.