Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ekit-minify
Advanced tools
Minifier of js, css, html and img (extended from orginial minify package. Checkout at: https://npmjs.org/package/minify)
Minify - a minifier of js, css, html and img files, used in Cloud Commander project.
You can install minify just like that:
npm i minify
or
git clone git://github.com/coderaiser/minify
For use in command line just write something like:
minify <input-file> <output-file>
or just
minify <input-file>>
to see output in screen.
Minify module contains some api for interacting from another js files.
To use Minify functions it sould be connected first. It's doing like always.
minify = require('minify');
All of minification functions save files in ./min directory with extension .min (*.min.js, *.min.css, *.min.html). If directory could be created minify.MinFolder would countain stirng 'min/', in any other case - '/'.
optimize(pFiles_a) - function which minificate js, html and css-files.
Examples:
minify.optimize('client.js');
minify.optimize('client.js', {
callback: func(pMinData){}
});
if a couple files:
minify.optimize(['client.js',
'style.css']);
if post processing needed
minify.optimize({
'client.js' : function(pFinalCode){}
});
if post image converting needed (works with css only)
minify.optimize([{'style.css': {img: true, merge: true} },
'index.html']);
if only need the name of minified file (from min directory)
minify.optimize('client.js', {
returnName : true
callback : function(pParams){
var lName = pParams && pParams.name;
console.log(lName)
}
});
MinFolder - varible thet contains folder name, where minimized files stored. (could not be changed for now).
Install addtitional modules:
npm i uglify-js clean-css html-minifier css-b64-images
If you would like to contribute - send pull request to dev branch. Getting dev version of Minify:
git clone git://github.com/coderaiser/minify.git
git checkout dev
Copycat from https://github.com/coderaiser/minify because of some specific reasons!
FAQs
Minifier of js, css, html and img (extended from orginial minify package. Checkout at: https://npmjs.org/package/minify)
The npm package ekit-minify receives a total of 1 weekly downloads. As such, ekit-minify popularity was classified as not popular.
We found that ekit-minify 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.