zeep

0.2.2 • Public • Published

zeep

zip/unzip API based on 7-Zip

If links in this document not avaiable, please access README on GitHub directly.

Description

It is really difficult to find a module which is written in pure Node.js and offers zip/unzip perfectly.

Table of Contents

Get Started

const zeep = require('zeep');
 
// Create an archive (.zip) containing only one file.
zeep.zip(archive_path, file_path);
 
// Create an archive (.zip) containing the whole folder.
zeep.zip(archive_path, folder_path);
 
// Create an archive (.zip) containing children of the folder.
// The folder itself is ignored.
zeep.zip(archive_path, folder_path, { name: '.' });
 
// Extract from an archive (.zip) and put files / directories under specified output_path.
zeep.unzip(archive_path, output_path);
 
// Get all entry names stored in an archive.
let names = zeep.getEntryNames(archive_path);

Links

References

Readme

Keywords

Package Sidebar

Install

npm i zeep

Weekly Downloads

1

Version

0.2.2

License

LGPL

Unpacked Size

750 kB

Total Files

10

Last publish

Collaborators

  • youngoat