images-compression

    1.0.4 • Public • Published

    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

    Install

    npm i images-compression

    DownloadsWeekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    5.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • alexeykovalev