包详细信息

acorn-export-ns-from

acornjs73.3kMIT不推荐使用0.2.0

acorn>=7.2 supports export-ns-from

Support for export-ns-from in acorn

自述文件

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.

更新日志

0.2.0 (2020-05-05)

0.1.0 (2018-10-24)

Initial release