
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
babel-plugin-transform-throw-expressions
Advanced tools
Wraps Throw Expressions in an IIFE
This plugin transforms Throw Expressions into an IIFE.
function test(param = throw new Error('required!')) {
const test = param === true || throw new Error('Falsey!');
}
npm install --save-dev babel-plugin-transform-throw-expressions
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-throw-expressions"]
}
babel --plugins transform-throw-expressions script.js
require("babel-core").transform("code", {
plugins: ["transform-throw-expressions"]
});
FAQs
Wraps Throw Expressions in an IIFE
The npm package babel-plugin-transform-throw-expressions receives a total of 47 weekly downloads. As such, babel-plugin-transform-throw-expressions popularity was classified as not popular.
We found that babel-plugin-transform-throw-expressions 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.