tinify-compress-images

1.0.4 • Public • Published

compressing images by tinify

Installation

npm install --save tinify-compress-images

Quick Start

const { compressingImages } = require('tinify-compress-images')
const path = require('path')

const config = {
  key: 'qNjljFK4DYKNJw8zMwJFGDvG2HM5CFjy', // tinify key
  projectPath: path.join(__dirname, '../../fe-middleend/src/pages/promo'), // project path
  ignoreDirectorys: ['node_modules', 'dist', '.git', '.site'], // default ['node_modules', '.git']
  cacheMd5Path: './md5.json' // default './md5.json'

}

compressingImages(config)

Package Sidebar

Install

npm i tinify-compress-images

Weekly Downloads

4

Version

1.0.4

License

ISC

Unpacked Size

6.54 kB

Total Files

5

Last publish

Collaborators

  • gonggong