2.0.3 • Published 4 years ago
tinypnga v2.0.3
Tinypnga
Optimize your images with Tinypng API. Return Promise!
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,...]