Skip to content

A small nodejs library on top of zlib to allow gzipping set of files.

License

Notifications You must be signed in to change notification settings

simbathesailor/gzippalo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small nodejs library on top of zlib to allow gzipping set of files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published