• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

gulp plugin to compress png images using tinypng api

gulp-tinypng

Minify PNG using tinypng

Install

Install with npm

npm install --save-dev gulp-tinypng

Example

var gulp = require('gulp');
var tinypng = require('gulp-tinypng');

gulp.task('tinypng', function () {
	gulp.src('src/**/*.png')
		.pipe(tinypng('API_KEY'))
		.pipe(gulp.dest('compressed_images'));
});

API

tinypng(options)

License

MIT © Gaurav Jassal