You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
401 B
22 lines
401 B
4 weeks ago
|
# 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.
|