Socket
Socket
Sign inDemoInstall

acorn-export-ns-from

Package Overview
Dependencies
1
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    acorn-export-ns-from

Support for export-ns-from in acorn


Version published
Weekly downloads
15K
increased by25.86%
Maintainers
3
Install size
16.6 kB
Created
Weekly downloads
 

Changelog

Source

0.2.0 (2020-05-05)

  • Change AST to what got merged into ESTree
  • Mark as compatible with acorn@7
  • Use injected acorn, if possible

Readme

Source

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.

FAQs

Last updated on 05 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc