@hanhaotian/zip-util

0.0.5 • Public • Published

NPM Version ![NPM Downloads][downloads-image]

zip-util

This is a util for simple use zip unzip, it used archive.zip and unzipper.
zip support file, files, string, buffer,stream as src

Installation

$ npm install @hanhaotian/zip-util

Quick Examples

Extract to a directory

let result = await zipUtil.zip(src, dest,newName)
let result = await zipUtil.unzip(src, dest)

zip complete 'result' will return 'complete' ,otherwise return error message .

Licenses

See LICENCE

Package Sidebar

Install

npm i @hanhaotian/zip-util

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

6.11 kB

Total Files

6

Last publish

Collaborators

  • hanhaotian