
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
imagemin-hokkoo
Advanced tools
Minify images seamlessly
$ npm install --save imagemin
const Imagemin = require('imagemin');
new Imagemin()
.src('images/*.{gif,jpg,png,svg}')
.dest('build/images')
.use(Imagemin.jpegtran({progressive: true}))
.run((err, files) => {
console.log(files[0]);
//=> {path: 'build/images/foo.jpg', contents: <Buffer 89 50 4e ...>}
});
You can use gulp-rename to rename your files:
const Imagemin = require('imagemin');
const rename = require('gulp-rename');
new Imagemin()
.src('images/foo.png')
.use(rename('bar.png'));
Creates a new Imagemin instance.
Type: array, buffer or string
Set the files to be optimized. Takes a buffer, glob string or an array of glob strings as argument.
Type: string
Set the destination folder to where your files will be written. If you don't set any destination no files will be written.
Type: function
Add a plugin to the middleware stack.
Type: function
Optimize your files with the given settings.
The callback will return an array of vinyl files in files.
The following plugins are bundled with imagemin:
Compress GIF images.
const Imagemin = require('imagemin');
new Imagemin()
.use(Imagemin.gifsicle({interlaced: true}));
Compress JPG images.
const Imagemin = require('imagemin');
new Imagemin()
.use(Imagemin.jpegtran({progressive: true}));
Lossless compression of PNG images.
const Imagemin = require('imagemin');
new Imagemin()
.use(Imagemin.optipng({optimizationLevel: 3}));
Compress SVG images.
const Imagemin = require('imagemin');
new Imagemin()
.use(Imagemin.svgo());
MIT © imagemin
FAQs
Minify images
We found that imagemin-hokkoo 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.