Gathering detailed insights and metrics for @node-minify/terser
Gathering detailed insights and metrics for @node-minify/terser
Gathering detailed insights and metrics for @node-minify/terser
Gathering detailed insights and metrics for @node-minify/terser
npm install @node-minify/terser
@node-minify/yui@9.0.1
Published on 12 Nov 2024
@node-minify/utils@9.0.1
Published on 12 Nov 2024
@node-minify/uglify-es@9.0.1
Published on 12 Nov 2024
@node-minify/uglify-js@9.0.1
Published on 12 Nov 2024
@node-minify/run@9.0.1
Published on 12 Nov 2024
@node-minify/sqwish@9.0.1
Published on 12 Nov 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
509 Stars
4,349 Commits
54 Forks
16 Watching
6 Branches
21 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
TypeScript (98.64%)
JavaScript (1.36%)
Cumulative downloads
Total Downloads
Last day
12.4%
7,771
Compared to previous day
Last week
4.8%
39,446
Compared to previous week
Last month
13.5%
166,311
Compared to previous month
Last year
194.4%
1,343,978
Compared to previous year
2
1
A very light minifier Node.js module.
It allow you to compress JavaScript, CSS and HTML files.
JavaScript:
CSS:
HTML:
Command Line Interface:
1npm install @node-minify/core 2# Or Yarn 3yarn add @node-minify/core 4# Or pnpm 5pnpm add @node-minify/core 6# Or Bun 7bun add @node-minify/core
And install the compressor you want
1npm install @node-minify/uglify-js 2# Or Yarn 3yarn add @node-minify/uglify-js 4# Or pnpm 5pnpm add @node-minify/uglify-js 6# Or Bun 7bun add @node-minify/uglify-js
1import minify from '@node-minify/core'; 2import gcc from '@node-minify/google-closure-compiler'; 3import uglifyjs from '@node-minify/uglify-js'; 4 5// Using Google Closure Compiler 6minify({ 7 compressor: gcc, 8 input: 'foo.js', 9 output: 'bar.js', 10 callback: function (err, min) {} 11}); 12 13// Using UglifyJS 14minify({ 15 compressor: uglifyjs, 16 input: './**/*.js', 17 output: 'bar.js', 18 callback: function (err, min) {} 19}); 20 21// Using Promise 22var promise = minify({ 23 compressor: uglifyjs, 24 input: './**/*.js', 25 output: 'bar.js' 26}); 27 28promise.then(function (min) {}); 29 30// Async/Await 31async function doMinify() { 32 const min = await minify({ compressor: uglifyjs, input: 'foo.js', output: 'bar.js' }); 33}
1import htmlMinifier from '@node-minify/html-minifier'; 2 3const html = ` 4<!doctype html> 5<html> 6 <head> 7 <meta charset="utf-8"> 8 </head> 9</html>`; 10 11minify({ 12 compressor: htmlMinifier, 13 content: html 14}).then(function (min) { 15 console.log('html min'); 16 console.log(min); 17});
Visit https://node-minify.2clics.net for full documentation.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More