optimize-images
[![Github][github-tag]][github-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![License][license-image]][license-url]
Last updated 3 years ago by futerzak .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install optimize-images 
SYNC missed versions from official npm registry.

Optimize Images

Github Build status Test coverage License

API

const optimizeImages = require('optimize-images')

optimizeImage(root, tinypngApiKey)

Example

const express = require('express')
const optimizeImages = require('optimize-images')

const app = express()

//generate from https://tinypng.com/developers
const tinypngApiKey = "YOUR_API_SECRET_KEY" 
const root = "public"

app.use(optimizeImages(root, tinypngApiKey))

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

1 Versions

  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |