Socket
Book a DemoInstallSign in
Socket

easy-zip-archiver

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-zip-archiver

A module can easily compress the zip file

0.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

easy-zip-archiver

tnpm

使用easy-zip-archiver轻松生成你的zip压缩包

安装模块:

$ npm install easy-zip-archiver

使用方法:

以下的()表示为必选参数[]表示为可选参数

const EZA=require('easy-zip-archiver');//    引入模块

var eza=EZA.create('a.zip');//    创建文件

eza.push('yooo.txt').push('papapa.txt','gg.text');//    push((本地文件名),[压缩包内文件名]);

eza.push(new Buffer('haha'),'baka/hi.txt');//    push((流对象),(压缩包内文件名));

eza.push('a/b/c/').push('gg/gd','gggg');//    push((本地文件夹名),[压缩包内文件夹名]);

//以上均是给压缩包插♂入文件

//eza.clear()  <-不是必需的,清空文件列表

eza.run().close();//    run() - 开始压缩  close() - 完成压缩

协议:

Apache-2.0

Keywords

zip

FAQs

Package last updated on 31 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.