Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
babel-plugin-globals
Advanced tools
A babel plugin that exposes ES6 modules to global variables.
##Usage This is a babel plugin that converts ES6 modules into global variables. To use it, just add it to your package.json and pass it as a plugin when calling babel:
babel.transform('code', {
_globalName: 'myGlobal',
filename: filename,
plugins: ['globals']
});
// Modules will be available at this.myGlobal.
This plugin requires passing two options to the babel config object (besides adding the plugin). They are:
_globalName
{string} The name of the global variable that the modules should be exported to.filename
{string} This is an optional existing babel option, but is required for this plugin, since it uses the file name to decide the name of the keys that will be exported in the global variable.FAQs
A babel plugin that exposes ES6 modules to global variables.
The npm package babel-plugin-globals receives a total of 61 weekly downloads. As such, babel-plugin-globals popularity was classified as not popular.
We found that babel-plugin-globals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.