Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Support for `export * as ns from "mod"` in acorn

License

Notifications You must be signed in to change notification settings

acornjs/acorn-export-ns-from

Repository files navigation

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.

About

Support for `export * as ns from "mod"` in acorn

Resources

License

Stars

Watchers

Forks

Packages

No packages published