
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
babel-plugin-minify-numeric-literals
Advanced tools
Shortening of numeric literals via scientific notation
In
[1000, -20000]
Out
[1e3, -2e4]
npm install babel-plugin-minify-numeric-literals --save-dev
.babelrc (Recommended).babelrc
{
"plugins": ["minify-numeric-literals"]
}
babel --plugins minify-numeric-literals script.js
require("@babel/core").transform("code", {
plugins: ["minify-numeric-literals"]
});
This package minifies boolean literals in your code. It converts true and false to !0 and !1 respectively, which can save space. Unlike babel-plugin-minify-numeric-literals, it focuses on boolean values rather than numeric literals.
This package performs constant folding, which is the process of simplifying constant expressions at compile time. It can optimize arithmetic expressions, boolean expressions, and more. While it can handle numeric literals, its scope is broader than just minifying numeric literals.
This package simplifies expressions and statements in your code. It can remove unnecessary code, inline variables, and more. It includes numeric literal simplification as part of its broader optimization strategies.
FAQs
Shortens numeric literals using scientific notation
The npm package babel-plugin-minify-numeric-literals receives a total of 675,153 weekly downloads. As such, babel-plugin-minify-numeric-literals popularity was classified as popular.
We found that babel-plugin-minify-numeric-literals 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.