Nonchalantly Performs Magic
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    optimize-imagespublic

    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))
     

    install

    npm i optimize-images

    Downloadsweekly downloads

    2

    version

    1.0.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar