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

broccoli-brotli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-brotli

Broccoli plugin to compress trees using Brotli

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
321
decreased by-58.63%
Maintainers
1
Weekly downloads
 
Created
Source

npm version npm downloads MIT License

Broccoli Brotli plugin

Fork of broccoli-zopfli (which is a fork of broccoli-gzip) to use Brotli instead of Zopfli instead of gzip to perform compression. All credit goes to the original authors of broccoli-{zopfli,gzip}.

Installation

$ npm i broccoli-brotli

Example

const Brotli = require('broccoli-brotli')

const tree = new Brotli('app', {
  extensions: ['js', 'css', 'svg']
})

Configuration

new Brotli(inputNode, options)


options.extensions {Array} (required)

The file extensions that should be compressed.


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

Whether to keep uncompressed versions of the files in the resulting tree.


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

Whether to append the .br extension suffix to compressed files.


options.XXX

Where XXX comes from BrotliOptions.


License

broccoli-brotli is, like broccoli-zopfli, distributed under the MIT license.

Keywords

FAQs

Package last updated on 10 Jan 2022

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