acorn
npmv8.17.0TypeScriptECMAScript parser
Overview
acorn is an npm package that eCMAScript parser. The latest version is 8.17.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need eCMAScript parser 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 (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.
Relationship graph
Dependencies (left) and dependents (right) of acorn.
Used by
Popular packages that depend on acorn.
Promise based HTTP client for the browser and node.js
Next generation testing framework powered by Vite
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.
Determine whether an AST node is a reference
Cybernetically enhanced web apps
Parse in reverse
Acorn plugin that parses TypeScript
Missing ECMAScript module utils for Node.js
Support for `import <defer|source>` phase syntax in Acorn
An Esprima-compatible JavaScript parser built on Acorn
Runtime typescript and ESM support for Node.js
Modern, fast React.js JSX parser
AST-aware v8-to-istanbul
Let’s get serious about color
Frequently installed together
Prettier is an opinionated code formatter
Next generation testing framework powered by Vite
TypeScript definitions for node
TypeScript definitions for estree
An AST-based pattern checker for JavaScript.
V8 coverage provider for Vitest
Modify strings, generate sourcemaps
Native-ESM powered web dev build tool
Traverse an ESTree-compliant AST
Universal filesystem path utils
Runtime agnostic JS utils
Trace the original position through a source map
Version history
| Version | Published | License |
|---|---|---|
| 8.17.0latest | 1 month ago | MIT |
| 8.16.0 | 5 months ago | MIT |
| 8.15.0 | 1 year ago | MIT |
| 8.14.1 | 1 year ago | MIT |
| 8.14.0 | 1 year ago | MIT |
| 8.13.0 | 1 year ago | MIT |
| 8.12.1 | 2 years ago | MIT |
| 8.12.0 | 2 years ago | MIT |
| 8.11.3 | 2 years ago | MIT |
| 8.11.2 | 2 years ago | MIT |
| 8.11.1 | 2 years ago | MIT |
| 8.11.0 | 2 years ago | MIT |
| 8.10.0 | 3 years ago | MIT |
| 8.9.0 | 3 years ago | MIT |
| 8.8.2 | 3 years ago | MIT |
| 8.8.1 | 3 years ago | MIT |
| 8.8.0 | 4 years ago | MIT |
| 8.7.1 | 4 years ago | MIT |
| 8.7.0 | 4 years ago | MIT |
| 8.6.0 | 4 years ago | MIT |
Maintainers
Frequently asked questions
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 0 downloads per week and 10 known dependent packages.