# ktzip

> The zip&unzip tool!

Latest version **1.0.4** (published 2020-05-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install ktzip
pnpm add ktzip
yarn add ktzip
bun add ktzip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-05-26 |
| First published | 2020-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chenshaoye |
| Maintainers | fanyifang |

## Links

- npm: https://www.npmjs.com/package/ktzip
- npm.io page: https://npm.io/package/ktzip

## Recent versions

- 1.0.4 (latest) — 2020-05-26

## README

### 快速压缩解压工具
该库支持快速压缩 zip 和解压缩zip格式文件
#### 安装方法
```
npm install ktzip
```
该库依赖于: adm-zip, 请先安装依赖
```
npm install adm-zip
```

#### 使用方法

#### 1. 压缩
```js
    /**
     * 压缩方法
     * @param {string} doZipFileOrDir 等待压缩的目录或者文件
     * @param {sting} desZip 压缩目录+文件, 例如  ./log.zip
     */
    doZip(doZipFileOrDir, desZip )
```
例子:
```js
// 将 dll目录以及内部文件压缩成为 dll.zip
ktzip.doZip('./dll', './dll.zip')
```

#### 2. 解压缩
```js
// 将dll文件解压缩到目录 dllll下
ktzip.unZip("dll.zip", "./dllll")
```

---
_Source: https://npm.io/package/ktzip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
