Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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)
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.