0.1.3 • Published 4 years ago

gzippalo v0.1.3

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

Gzippalo

A small wrapper around nodejs zlib and glob for gzipping the files

Installation

yarn add  gzippalo --dev

Usage:

gzippalo({
  pattern: '*.js?(.map)',
  globOptions: {
    cwd: `${__dirname}`,
  },
});

Options Types:

interface IOptions {
  globOptions: glob.IOptions;
  pattern?: string;
  updateInline?: boolean;
  destination?: string;
}

Note: glob.IOptions is from @types/glob

globOptions takes all the parameters, which are accepted by glob

Pending:

Add support createGzip option forwarding

https://nodejs.org/api/zlib.html#zlib_class_options