acorn-jsx
npmv5.3.2Modern, fast React.js JSX parser
Not recommended for new projects
No — acorn-jsx should not be adopted for new projects. Last published 1889 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1889 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 24 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-jsx 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.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the acorn-jsx README.
var acorn = require("acorn");
var jsx = require("acorn-jsx");
acorn.Parser.extend(jsx()).parse("my(<jsx/>, 'code');");Dependencies
Declared by acorn-jsx v5.3.2. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Dev (1)
Used by
Popular packages that depend on acorn-jsx.
Relationship graph
Dependencies (left) and dependents (right) of acorn-jsx.
Frequently installed together
ECMAScript parser
An extremely fast JavaScript and CSS bundler and minifier.
Prettier is an opinionated code formatter
Next generation testing framework powered by Vite
Constants and utilities about visitor keys to traverse AST.
Release history
No releases in the last two years, typically about 67 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.3.2latest | 5 years ago | 24 KB | MIT |
| 5.3.1 | 6 years ago | 24 KB | MIT |
| 5.3.0 | 6 years ago | 24 KB | MIT |
| 5.2.0 | 6 years ago | 24 KB | MIT |
| 5.1.0 | 7 years ago | 23 KB | MIT |
| 5.0.2 | 7 years ago | 22 KB | MIT |
| 5.0.1 | 7 years ago | 22 KB | MIT |
| 5.0.0 | 8 years ago | 22 KB | MIT |
| 4.1.1 | 8 years ago | — | MIT |
| 4.1.0 | 8 years ago | — | MIT |
| 4.0.1 | 9 years ago | — | MIT |
| 4.0.0 | 9 years ago | — | MIT |
| 3.0.1 | 10 years ago | — | MIT |
| 3.0.0 | 10 years ago | — | MIT |
| 2.0.1 | 11 years ago | — | MIT |
Overview
acorn-jsx is an npm package that modern, fast React.js JSX parser. It has 2 known dependents in the graph. The latest version is 5.3.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need modern, fast React.js JSX parser and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use acorn-jsx?
No — acorn-jsx should not be adopted for new projects. Last published 1889 days ago.
How do I install acorn-jsx?
Run `npm install acorn-jsx` to add acorn-jsx to your npm project.
What license is acorn-jsx released under?
acorn-jsx is distributed under the MIT license.
How popular is acorn-jsx?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on acorn-jsx.
Is acorn-jsx still maintained?
The most recent release of acorn-jsx (v5.3.2) was published 5 years ago.
Does acorn-jsx run install scripts?
No. acorn-jsx does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.