1.0.4 • Published 2 years ago

tinify-compress-images v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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)