Attributes
Includes Deno configuration
Repository
Current version released
11 months ago
Dependencies
deno.land/x
other
skypack.dev
fflate@0.8.0
std
nzip
Intelligent fast compression | 智能化快速压缩
Support
cli
- Supports c12 configuration | 支持 c12 配置 (name: nzip)
- nodejs Ignore node_modules and any cache | 忽略 nodejs 的 node_modules 和常见缓存
program
- Streaming zip | 流式 zip
- Multi-file synthesis | 多文件合成
Usage
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/")
cli
install
deno install --allow-read --allow-write --allow-env --allow-sys --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-env --allow-sys --allow-run -rfn nzip https://deno.land/x/nzip/mod.ts
zip
nzip # in your porject
tar
nzip -t tar # in your porject
withConfig
// nzip.config.ts
export default {
// Your custom skip
skip: [/script/],
}
nzip # Automatically merge configurations
decompress
nzip de <your.zip|your.rar> <output>
TODO
- Back pressure treatment
License
Made with markthree
Published under MIT License.