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

reduce

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reduce

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Lossless reduction for js, css, html, xml, jpg, png, gif

Install

install ruby + rubygems
sudo gem install reduce

Usage

reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.js

Options

-o, --overwrite                  overwrite file
-v, --version                    Show Version
-h, --help                       Show this.

Ruby

reduced_data = Reduce.reduce('files/bla.js')

How does it work?

  • uses web-based lossless image reduction service Smush.it / PunyPng through smusher
  • uses YUI compressor to minify css/js
  • uses htmlcompressor to minify html/xml

Author

Michael Grosser
grosser.michael@gmail.com
License: MIT

FAQs

Package last updated on 30 Dec 2012

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