https://github.com/simbathesailor/gzippalo
A small nodejs library on top of zlib to allow gzipping set of files.
https://github.com/simbathesailor/gzippalo
glob gzip-compression nodejs
Last synced: 3 months ago
JSON representation
A small nodejs library on top of zlib to allow gzipping set of files.
- Host: GitHub
- URL: https://github.com/simbathesailor/gzippalo
- Owner: simbathesailor
- License: mit
- Created: 2020-04-28T11:08:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:31:43.000Z (over 2 years ago)
- Last Synced: 2025-02-07T00:47:06.042Z (4 months ago)
- Topics: glob, gzip-compression, nodejs
- Language: TypeScript
- Homepage:
- Size: 1.57 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gzippalo
A small wrapper around nodejs zlib and [glob](https://www.npmjs.com/package/glob) for gzipping the files
Installation
```
yarn add gzippalo --dev
```Usage:
```javascript
gzippalo({
pattern: '*.js?(.map)',
globOptions: {
cwd: `${__dirname}`,
},
});
```Options Types:
```typescript
interface IOptions {
globOptions: glob.IOptions;
pattern?: string;
updateInline?: boolean;
destination?: string;
}
```Note: glob.IOptions is from [@types/glob](https://www.npmjs.com/package/@types/glob)
globOptions takes all the parameters, which are accepted by [glob](https://www.npmjs.com/package/glob)
### Pending:
Add support createGzip option forwarding
https://nodejs.org/api/zlib.html#zlib_class_options