Socket
Socket
Sign inDemoInstall

broccoli-gzip

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-gzip

Broccoli plugin to gzip files.


Version published
Weekly downloads
1.5K
increased by15.2%
Maintainers
1
Weekly downloads
 
Created
Source

Broccoli Gzip Plugin

Build Status

Installation

yarn add broccoli-gzip

Example

const Gzip = require('broccoli-gzip');

let tree = new Gzip('app', {
  extensions: ['js', 'css']
});

Configuration

new Gzip(inputTree, options)


options.extensions {Array} (Required)

The file extensions that should be compressed.


options.keepUncompressed {Boolean} (Optional, default false)

Whether the uncompressed versions of the files should be kept in the resulting tree.


options.appendSuffix {Boolean} (Optional, default true)

Whether to append the .gz suffix.

Testing

yarn test

License

This project is distributed under the MIT license.

Keywords

FAQs

Package last updated on 31 Mar 2017

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