mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 15:05:08 +00:00
| .. | ||
| lib | ||
| .npmignore | ||
| package.json | ||
| README.md | ||
babel-plugin-minify-mangle-names
Shortening of numeric literals via scientific notation
Example
In
[1000, -20000]
Out
[1e3, -2e4]
Installation
$ npm install babel-plugin-minify-numeric-literals
Usage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["minify-numeric-literals"]
}
Via CLI
$ babel --plugins minify-numeric-literals script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["minify-numeric-literals"]
});