开发者社区> 镜像站> NPM> acorn-export-ns-from
acorn-export-ns-from

Support for export-ns-from in acorn

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

export namespace from support for Acorn

NPM version

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

It implements support for export namespace from as defined in the proposal Add `export * as ns from "mod"` to Export production and Module Semantic. The emitted AST follows ESTree.

Usage

This module provides a plugin that can be used to extend the Acorn Parser class:

const {Parser} = require('acorn');
const acornExportNsFrom = require('acorn-export-ns-from');
Parser.extend(acornExportNsFrom).parse('export * as ns from "source"');

License

This plugin is released under an MIT License.

Current Tags

  • 0.2.0                                ...           latest (7 months ago)

2 Versions

  • 0.2.0 [deprecated]           ...           7 months ago
  • 0.1.0 [deprecated]           ...           2 years ago
Downloads
Today 2
This Week 416
This Month 321
Last Day 51
Last Week 463
Last Month 2,140
Dependencies (0)
None
Dev Dependencies (6)