Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@babel/plugin-syntax-export-namespace-from
Advanced tools
The @babel/plugin-syntax-export-namespace-from package allows Babel to parse the export * as syntax, which is used to re-export all named exports from another module under a single namespace. This is part of the ECMAScript 2020 specification and enables more concise and flexible module exports.
Namespace export
This feature allows all named exports from a module to be re-exported under a single namespace. It simplifies the process of re-exporting multiple exports and enhances code readability and maintainability.
export * as namespaceName from './module';
This package is a proposal plugin for Babel that adds support for the export * as syntax, similar to @babel/plugin-syntax-export-namespace-from. The key difference is that @babel/plugin-proposal-export-namespace-from not only allows Babel to parse this syntax but also transforms it, making it usable in environments that do not support this syntax natively.
While not a direct alternative, @babel/preset-env includes support for transforming modern ECMAScript features, including the export * as syntax, to be compatible with older environments. It's a more comprehensive solution that includes the functionality of @babel/plugin-syntax-export-namespace-from as part of its broader feature set.
Allow parsing of export namespace from
See our website @babel/plugin-syntax-export-namespace-from for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-export-namespace-from
or using yarn:
yarn add @babel/plugin-syntax-export-namespace-from --dev
FAQs
Allow parsing of export namespace from
We found that @babel/plugin-syntax-export-namespace-from demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.