acorn-import-meta

Support for import.meta in acorn

acorn>=7.2 supports import-meta
Last updated 6 years ago by adrianheine .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm 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 (6 years ago)

6 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |