JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2366
  • Score
    100M100P100Q131384F
  • License MIT

gzip files

Package Exports

  • gzip-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gzip-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm

gzip-cli

gzip files easily

Install

npm i gzip-cli

Command Line

  Usage: gzip [glob patterns]

  Options:
    -o, --output               output directory

Example

  gzip dist/**/*.js

Will gzip all *.js files in folder dist and output they to the same folder, e.g. dist/public/main.js -> dist/public/main.js.gz

  gzip source/**/*.js --output=dist

Will gzip all *.js files in folder source and output they to the dist folder with saving file paths relative to glob base, e.g. source/utils/fileUtils.js -> dist/utils/fileUtils.js.gz