https://github.com/ryinner/dir-archiver
simple application for creating archive
https://github.com/ryinner/dir-archiver
Last synced: 10 months ago
JSON representation
simple application for creating archive
- Host: GitHub
- URL: https://github.com/ryinner/dir-archiver
- Owner: ryinner
- License: mit
- Created: 2023-12-28T06:14:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-28T06:26:14.000Z (over 2 years ago)
- Last Synced: 2025-03-02T07:13:40.941Z (over 1 year ago)
- Language: TypeScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```javascript
const { generateZip } = require('@ryinner/dir-archiver');
generateZip({
inputDir: './', // required
outDir: `mySuperZip/zip.zip`, // required
archiverOptions: { // required
zlib: { level: 9 }
},
extension: '.zip', // default zip
excludes: [ // default undefined
/node_modules/gi // only regexp
]
});
```