zip-editor

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i zip-editor

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

14.2 kB

Total Files

15

Last publish

Collaborators

  • nima.rahmani