JSPM

gulp-tinify

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q56943F
  • License MIT

Minify PNG, JPEG, and GIF images via TinyPNG's API

Package Exports

  • gulp-tinify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-tinify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-tinify

Minify compatible files using TinyPNG's API

Installation

npm install --save-dev gulp-tinify

Usage

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

gulp.task('tinify', function() {
    gulp.src('/img/**/*')
        .pipe(tinify('TinyPNGAPIKey'))
        .pipe(gulp.dest('/dest/img'));
});

You must have a TinyPNG Developer API Key for this to work.

License

MIT © Josh Broton