Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 20, 2024 via pnpm

acorn-import-assertions 1.7.4

Support for import assertions in acorn
Package summary
Share
0
issues
1
license
3
MIT
Package created
13 Dec 2020
Version published
22 Jul 2021
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
acorn-import-assertions@1.7.4
acorn@8.11.3
charcodes@0.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of acorn-import-assertions 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
acorn8.11.3122.89 kBMIT
prod peer
charcodes0.2.04.3 kBMIT
prod

Visualizations

Frequently Asked Questions

What does acorn-import-assertions do?

Acorn-import-assertions is an npm package that offers support for import assertions in acorn. Import assertions are a new JavaScript feature that allows metadata to be associated with import statements. Acorn is a small, fast, JavaScript-based parsing library, and with this plugin, you can extend Acorn's parsing capabilities to include support for import assertions.

How do you use acorn-import-assertions?

To use acorn-import-assertions, begin by installing it via npm. Once installed, you can execute it with the Acorn Parser utility. An example of this would look like the following JavaScript code:

const {Parser} = require('acorn');
const {importAssertions} = require('acorn-import-assertions');
Parser.extend(importAssertions).parse('...');

In this code, require('acorn') and require('acorn-import-assertions') are importing the Acorn Parser utility and the import assertions plugin, respectively. Parser.extend(importAssertions).parse('...') is using the plugin to extend the capabilities of the parser.

Where are the acorn-import-assertions docs?

The acorn-import-assertions documentation, including further usage details and related information, can be found directly on the GitHub page for the package, which is: https://github.com/xtuc/acorn-import-assertions.