https://github.com/xtuc/acorn-import-attributes
Support for import assertions in acorn
https://github.com/xtuc/acorn-import-attributes
Last synced: over 1 year ago
JSON representation
Support for import assertions in acorn
- Host: GitHub
- URL: https://github.com/xtuc/acorn-import-attributes
- Owner: xtuc
- License: mit
- Created: 2020-12-13T17:56:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T07:49:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T09:06:15.285Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 254 KB
- Stars: 22
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Support for import attributes in acorn
## Install
```
yarn add acorn-import-attributes
```
## Usage
This module provides a plugin that can be used to extend the Acorn Parser class:
```js
const {Parser} = require('acorn');
const {importAttributes} = require('acorn-import-attributes');
Parser.extend(importAttributes).parse('...');
```
## License
This plugin is released under an MIT License.