acorn-import-meta

Support for import.meta in acorn

acorn>=7.2 supports import-meta
Last updated 7 years ago by adrianheine .
MIT · Repository · Original npm · Tarball · package.json
$ npm install acorn-import-meta 
SYNC missed versions from official npm registry.

Support for import.meta in Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for import.meta as defined in the corresponding stage 3 proposal. The emitted AST follows ESTree.

Usage

This module provides a plugin that extends the Acorn Parser class:

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.

Current Tags

  • 1.1.0                                ...           latest (7 years ago)

6 Versions

  • 1.1.0 [deprecated]           ...           7 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
  • 0.3.0 [deprecated]           ...           8 years ago
  • 0.2.1 [deprecated]           ...           9 years ago
  • 0.2.0 [deprecated]           ...           9 years ago
  • 0.1.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE