tinypnga

2.0.3 • Public • Published

Tinypnga

Optimize your images with Tinypng API. Return Promise!

NPM

Usage

const tinypnga=require('tinypnga')

tinypnga.tinypnga(token,urlarray)
.then((res)=>{
    //res = [yourimagebuffer1,yourimagebuffer2,...]
})

Input

token

Type: String

Your tinypng api token

urlarray

Type: Array [String1, String2,...]

An array contain your images' urls

Return

Promise!

Type: Array [Buffer1, Buffer2,...]

Readme

Keywords

none

Package Sidebar

Install

npm i tinypnga

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

2.58 kB

Total Files

3

Last publish

Collaborators

  • yuxuanwang-china