Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-optidash

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-optidash

Official Grunt plugin for Optidash - AI-powered image optimization and processing API. We will drastically speed-up your websites and save you money on bandwidth and storage.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Optidash

Optidash is a modern, AI-powered image optimization and processing API.
We will drastically speed-up your websites and save you money on bandwidth and storage.


The official Grunt task for image optimization with Optidash API.


Installation

$ npm install grunt-optidash --save-dev

Quick example

const grunt = require("grunt");
const optidash = require("grunt-optidash");

grunt.initConfig({
    optidash: {
        options: {
            key: "your-optidash-api-key"
        },
        dynamic: {
            files: [{
                expand: true,
                cwd: "src/",
                src: ["**/*.{png,jpg,jpeg,gif,svg,webp}"],
                dest: "dist/"
            }]
        }
    }
});

grunt.loadNpmTasks("grunt-optidash");
grunt.registerTask("default", ["optidash"]);

Options

{
    key: "optidash-api-key",
    compression: "medium",
    concurrency: 6
}
key

Your Optidash API Key. If you don't have your API Key just yet, you can sign-up for a free account which comes with a monthly quota of 500 API calls.

  • type: string
  • default: ""
compression

Controls compression and optimization mode as described in the Optidash API Docs.

  • type: string
  • values: lossless | low | medium | high
  • default: medium
concurrency

Controls the maxium number of input images that may be performed in parallel.

  • type: number
  • values: 1 - 16
  • default: 6

License

This software is distributed under the MIT License. See the LICENSE file for more information.

Keywords

FAQs

Package last updated on 21 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc