use directories for structure
This commit is contained in:
21
node_modules/acorn-import-meta/README.md
generated
vendored
Normal file
21
node_modules/acorn-import-meta/README.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Support for import.meta in Acorn
|
||||
|
||||
[](https://www.npmjs.org/package/acorn-import-meta)
|
||||
|
||||
This is a plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.
|
||||
|
||||
It implements support for import.meta as defined in the [corresponding stage 3 proposal](https://github.com/tc39/proposal-import-meta). The emitted AST follows [ESTree](https://github.com/estree/estree/blob/master/es2015.md#metaproperty).
|
||||
|
||||
## Usage
|
||||
|
||||
This module provides a plugin that extends the Acorn `Parser` class:
|
||||
|
||||
```javascript
|
||||
var acorn = require('acorn');
|
||||
var importMeta = require('acorn-import-meta');
|
||||
acorn.Parser.extend(importMeta).parse('console.log(import.meta.url)');
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This plugin is released under an [MIT License](./LICENSE).
|
Reference in New Issue
Block a user