acorn-import-phases
npmv1.0.4TypeScriptSupport for `import <defer|source>` phase syntax in Acorn
Adopt with care
acorn-import-phases is usable, with caveats. Last published 422 days ago. 5 releases in the last 2 years.
- AAdoption: grade A, Excellent.
24.2M downloads per week and 1 known dependents.
- CMaintenance: grade C, Fair — worth a look.
Last published 422 days ago. 5 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 7.3 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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-import-phases 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
- node >=10.13.0
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the acorn-import-phases README.
const {Parser} = require('acorn');
const importPhases = require('acorn-import-phases');
Parser.extend(importPhases()).parse('...');acorn-import-phases vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| acorn-import-phasesthis page | 24.2M | 1 | MIT | 1 year ago |
| @jridgewell/gen-mapping | 163.4M | 4 | MIT | 1 day ago |
| loose-envify | 65M | 2 | MIT | 1 day ago |
| istanbul-lib-source-maps | 55.8M | 5 | BSD-3-Clause | 1 day ago |
| esm | 6.2M | 5 | MIT | 1 day ago |
| @vitest/istanbul-lib-source-maps | 25K | 2 | MIT | 1 day ago |
Dependencies
Declared by acorn-import-phases v1.0.4. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Dev (1)
Used by
Popular packages that depend on acorn-import-phases.
Relationship graph
Dependencies (left) and dependents (right) of acorn-import-phases.
Frequently installed together
ECMAScript parser
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset
React is a JavaScript library for building user interfaces.
TypeScript definitions for estree
Lodash modular utilities.
React package for working with the DOM.
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Node's event emitter for all engines.
Delightful JavaScript Testing.
ECMAScript scope analyzer for ESLint
A library to create a trace of your node app per Google's Trace Event format.
Release history
5 releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.4latest | 1 year ago | 7.3 KB | MIT |
| 1.0.3 | 1 year ago | 7.3 KB | MIT |
| 1.0.2 | 1 year ago | 7.2 KB | MIT |
| 1.0.1 | 1 year ago | 7.2 KB | MIT |
| 1.0.0 | 1 year ago | 6.7 KB | MIT |
Overview
acorn-import-phases is an npm package that support for `import <defer|source>` phase syntax in Acorn. It is extremely widely used, with about 24.2M downloads per week and 1 known dependents in the graph. The latest version is 1.0.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need support for `import <defer|source>` phase syntax in Acorn 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 (24.2M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 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-import-phases?
acorn-import-phases is usable, with caveats. Last published 422 days ago. 5 releases in the last 2 years.
How do I install acorn-import-phases?
Run `npm install acorn-import-phases` to add acorn-import-phases to your npm project.
What license is acorn-import-phases released under?
acorn-import-phases is distributed under the MIT license.
How popular is acorn-import-phases?
acorn-import-phases has approximately 24,183,704 downloads per week and 1 known dependent packages.
Is acorn-import-phases still maintained?
The most recent release of acorn-import-phases (v1.0.4) was published 1 year ago.
Does acorn-import-phases run install scripts?
No. acorn-import-phases does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.