zip-editor
v0.1.1
Published
Simple module to edit zip files
Downloads
4
Readme
Zip Editor
How to re-zip to a new file
const zipEditor = await zipEditor('currentFile.zip');
zipFileOutputStream
.pipe(fs.createWriteStream('newFile.zip'))
.on('finish', function() {
console.log('done');
});
How to filter some files by path
zipFileOutputStream
.pipe(fs.createWriteStream('newFile.zip'), {
onEntryCallback: ({path}) => path === 'content1.txt'
})
.on('finish', function() {
console.log('done');
});