acorn-import-meta
Support for import.meta in acorn
Last updated a month 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 (a month ago)

6 Versions

  • 1.1.0                                ...           a month ago
  • 1.0.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 32
This Month 1,055
Last Day 32
Last Week 286
Last Month 1,506
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |