New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-tinyimg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tinyimg

gulp plugin to compress images using tinyjpg api.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

gulp-tinyimg

##安装

npm install gulp-tinyimg

##使用

先到 [tinypng developers](https://tinypng.com/developers) 申请开发者 API key,每个月有500张免费使用的机会。

```javascript var gulp = require('gulp'); var tinyimg = require('gulp-tinyimg'); gulp.task('tinyimg',function(){ return gulp.src('images/*.png') .pipe(tinyimg('you API key')) .pipe(gulp.dest('images/dist')); }); ```

##功能

  • 集成了tinypng压缩png功能
  • 集成了tinyjpg压缩jpg功能

Keywords

gulpplugin

FAQs

Package last updated on 09 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts