This package has been deprecated

Author message:

acorn>=7.2 supports import-meta

acorn-import-meta

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i acorn-import-meta

Weekly Downloads

19,895

Version

1.1.0

License

MIT

Unpacked Size

21.8 kB

Total Files

11

Last publish

Collaborators

  • adrianheine
  • marijn
  • rreverser