acorn-export-ns-from

Support for export-ns-from in acorn

acorn>=7.2 supports export-ns-from
Last updated 6 years 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 (6 years ago)

2 Versions

  • 0.2.0 [deprecated]           ...           6 years ago
  • 0.1.0 [deprecated]           ...           7 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)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |