images-compression
v1.0.4
Published
Wrapper module for preserving directory structure when using imagemin
Downloads
3
Maintainers
Readme
images-compression
Wrapper module for preserving directory structure when using imagemin
.
Install
$ npm install images-compression --save-dev
Usage
import imagesCompression from 'images-compression';
imagesCompression('images/**/*.{jpg,jpeg,png,svg,gif}');
Run your script with Node.js terminal command:
$ node script.js
API
imagesCompression(inputDir)
Returns a undefined.
inputDir
Type: string
File paths or glob patterns.
License
MIT © kovalev-alexey