acorn-import-meta
Support for import.meta in acorn
Last updated a year ago by adrianheine .
MIT · Repository · Bugs · 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.0.0                                ...           latest (a year ago)

5 Versions

  • 1.0.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 9
This Week 9
This Month 119
Last Day 0
Last Week 63
Last Month 180
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2017 © taobao.org |