gzippalo
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gzippalo

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

19.9 kB

Total Files

11

Last publish

Collaborators

  • anil26