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

beez-optim

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beez-optim

beez-optim makes specify images optimize automatically in build process.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

beez-optim

About

特定のディレクトリを指定して、optipng jpegoptim pngquant を実行し画像を圧縮するコマンドです。

拡張子 .png .jpg .jpeg で画像判定します。

deps

  • jpegoptim
  • optipng
  • pngquant

Install

$ npm install -g beez-optim

Test

$ npm test

Configuration file

-c --config json data

{
    "optipng": {
        "use": true,
        "level": 3
    },
    "jpegoptim": {
        "use": true,
        "options": "--strip-all"
    },
    pngquant: {
        use: false,
        options: "--ext .png -f -v"
    }
}

Command line help

$ beez-optim -h

  Usage: beez-optim [options]

  Options:

    -h, --help                output usage information
    -p --limit <limit>        process limit default=10
    -s --srcdir <srcdir>      Source directory root path.
    -c --config <config>      configuration file.
    example config data:
        {
          "optipng": {
            "use": true,
            "level": 2
          },
          "jpegoptim": {
            "use": true,
            "options": '--strip-all'
          },
          "pngquant": {
            "use": false,
            "options": "--ext .png -f -v"
          }
        }

    -l --loglevel <loglevel>  Log level. default) INFO
       DEBUG: 1
       INFO:  2
       WARN:  3
       ERROR: 4
       FATAL: 5

Example

default

$ beez-optim -s /tmp/image

option

$ beez-optim -s /tmp/image -c ./config.json -l 1

LICENSE

The MIT License (MIT)

@see : LICENSE

Keywords

FAQs

Package last updated on 09 Jun 2014

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