Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
minify-all-js
Advanced tools
A function that minifies your javascript files (recursively).
minify-all-js was designed to reduce the size of your project's node_modules
directory. But it can also be used to minify any js files. By giving it a directory, minify-all-js
will walk through the depth of your folders and minify all the javascript that it sees.
> npm install -g minify-all-js
> minify-all-js [folder] [-j] [-m] [-M] [-p]
> minify-all-js ./node_modules -j -m -M -p
Use CLI options:
-j
or --json
to compress json files as well. (default: false
)-m
or --module
to set terser module option to true
for ES6 files (default: false
)-M
or --mangle
to set terser mangle option to true
(default: false
)-p
or --packagejson
to clean up extra fields from package.json files (default: false)-a
or --all
to try to compress all files including binary/executable js files without .js
extension (default: false) var promise = minifyAllJs([directory], {
compress_json: true, // -j in cli
module: true, // -m in cli
mangle: true, // -M in cli
packagejson: true, // -p in cli
all_js: true // -a in cli
})
minifyAllJs
function returns a promise
FAQs
A tool that minifies all .js files in a folder and its nested folders
The npm package minify-all-js receives a total of 1,414 weekly downloads. As such, minify-all-js popularity was classified as popular.
We found that minify-all-js 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.