0.1.1 • Published 5 years ago

zip-editor v0.1.1

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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');
    });
0.1.1

5 years ago

0.1.0

5 years ago