
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
babel-plugin-minify-type-constructors
Advanced tools
**Note:** Not recommended if full support for IE8 and lower is required. [Details](https://github.com/babel/minify/pull/45#discussion_r70181249)
Note: Not recommended if full support for IE8 and lower is required. Details
In
Boolean(x);
Number(x);
String(x);
Array(3);
Array(3,1);
Object({foo: 'bar'});
Out
!!x;
+x;
x + "";
[,,,];
[3, 1];
{foo: 'bar'};
npm install babel-plugin-minify-type-constructors --save-dev
.babelrc
(Recommended).babelrc
{
"plugins": ["minify-type-constructors"]
}
babel --plugins minify-type-constructors script.js
require("@babel/core").transform("code", {
plugins: ["minify-type-constructors"]
});
array
- prevent plugin from minifying arraysboolean
- prevent plugin from minifying booleansnumber
— prevent plugin from minifying numbersobject
— prevent plugin from minifying objectsstring
— prevent plugin from minifying stringsFAQs
**Note:** Not recommended if full support for IE8 and lower is required. [Details](https://github.com/babel/minify/pull/45#discussion_r70181249)
The npm package babel-plugin-minify-type-constructors receives a total of 281,492 weekly downloads. As such, babel-plugin-minify-type-constructors popularity was classified as popular.
We found that babel-plugin-minify-type-constructors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.