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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

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