Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Dependencies
deno.land/x
skypack.dev
fflate@0.8.0
std
nzip
Intelligent fast compression | 智能化快速压缩
Support
cli
- nodejs Ignore node_modules and any cache | 忽略 nodejs 的 node_modules 和常见缓存
program
- Streaming zip | 流式 zip
- Multi-file synthesis | 多文件合成
Usage
install
deno install --allow-read --allow-write --allow-run -rfn nzip https://deno.land/x/nzip/mod.ts
Of course, if you don’t have Deno installed | 当然如果你没装过 deno 👇
npx deno-npx install --allow-read --allow-write --allow-run -rfn nzip https://deno.land/x/nzip/mod.ts
cli
zip
nzip # in your porject
tar
nzip -t tar # in your porject
program
import { tar, untar, unzip, zip } from "https://deno.land/x/nzip/mod.ts";
// compress 压缩
await tar(["/path/file1", "/path/file2"], "output.tar");
await zip(["/path/file1", "/path/file2"], "output.zip");
// decompress 解压
await untar("output.tar", "/path2/");
await unzip("output.tar", "/path2/");
TODO
- Back pressure treatment
License
Made with markthree
Published under MIT License.