</>PackageGraphPackageGraph

acorn-import-phases

npmv1.0.4TypeScript

Support 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

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

7.3 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
acorn-import-phasesthis page24.2M1MIT1 year ago
@jridgewell/gen-mapping163.4M4MIT1 day ago
loose-envify65M2MIT1 day ago
istanbul-lib-source-maps55.8M5BSD-3-Clause1 day ago
esm6.2M5MIT1 day ago
@vitest/istanbul-lib-source-maps25K2MIT1 day ago

Dependencies

Declared by acorn-import-phases v1.0.4. Runtime dependencies are installed with the package; dev dependencies are not.

Used by

Popular packages that depend on acorn-import-phases.

Relationship graph

Dependencies (left) and dependents (right) of acorn-import-phases.

acornwebpackacorn-import-phas…
acorn-import-phases dependencies dependents

Frequently installed together

Release history

5 releases in the last two years, typically about 0 days apart.

Recent versions of acorn-import-phases
VersionPublishedSizeLicense
1.0.4latest1 year ago7.3 KBMIT
1.0.31 year ago7.3 KBMIT
1.0.21 year ago7.2 KBMIT
1.0.11 year ago7.2 KBMIT
1.0.01 year ago6.7 KBMIT

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

Keywords

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.