Optimize your images with Tinypng API. Return Promise!
const tinypnga=require('tinypnga')
tinypnga.tinypnga(token,urlarray)
.then((res)=>{
//res = [yourimagebuffer1,yourimagebuffer2,...]
})
Type: String
Your tinypng api token
Type: Array [String1, String2,...]
An array contain your images' urls
Promise!
Type: Array [Buffer1, Buffer2,...]