shrink-img

0.1.2 • Public • Published

shrink-img

NPM version Dependency Status devDependency Status License

Installation

    npm install shrink-img

Usage

    const shrink = require('shrink-img');
 
    // Pass in a directory. It will recursively compress all png,jpg,gif images under this folder.
    // !! This will replace your original images, do back up if you needed.
    shrink('FolderPath', 'yourTinyPngAPIKey');
    shrink('.', 'ZgPDOUKtFZgPIiDOKtR');

You need to have a tinyPng API key before compress images. Go to apply: https://tinypng.com/developers

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    1

Package Sidebar

Install

npm i shrink-img

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • wenwu