Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@babel/plugin-proposal-export-namespace-from
Advanced tools
Compile export namespace to ES2015
The @babel/plugin-proposal-export-namespace-from package allows developers to use the export * as syntax in their JavaScript or TypeScript code, which is part of the ECMAScript 2020 (ES2020) specification. This syntax enables a module to re-export all exports of another module, creating a single named export that encapsulates all of them.
Re-exporting all named exports from a module
This feature allows a module to re-export all named exports from another module under a single namespace. In the code sample, all exports from './utils' are available as properties of the 'utils' object.
export * as utils from './utils';
This package allows Babel to parse the export * as syntax but does not transform it. It is useful when you want to enable the syntax but are using a bundler or environment that already supports it natively.
This package is a Babel plugin that adds support for the export-from extension syntax, which includes export * as. It is similar to @babel/plugin-proposal-export-namespace-from but is not scoped under the official Babel namespace and may not be as up-to-date with Babel's plugin API.
Compile export-ns-from statements to ES2015
export * as ns from 'mod';
npm install --save-dev @babel/plugin-proposal-export-namespace-from
.babelrc
(Recommended).babelrc
{
"plugins": ["@babel/plugin-proposal-export-namespace-from"]
}
babel --plugins @babel/plugin-proposal-export-namespace-from script.js
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-proposal-export-namespace-from"]
});
FAQs
Compile export namespace to ES2015
The npm package @babel/plugin-proposal-export-namespace-from receives a total of 3,975,432 weekly downloads. As such, @babel/plugin-proposal-export-namespace-from popularity was classified as popular.
We found that @babel/plugin-proposal-export-namespace-from demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.