markthree / nzip

Intelligent fast compression and decompression cli | 智能化快速解压和压缩 cli

Home Page:https://deno.land/x/nzip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nzip

Intelligent fast compression and decompression cli

Support

cli

  • Support for tar and unzip
  • Ignores common caching of nodejs
  • Support for c12 configuration (name: nzip)

program

  • Multi-file bundling
  • Support for tar and unzip

Usage

Program

import { tar, untar, unzip, zip } from "https://deno.land/x/nzip/mod.ts";

// Compression
await tar(["/path/file1", "/path/file2"], "output.tar");
await zip(["/path/file1", "/path/file2"], "output.zip");

// Decompression
await untar("output.tar", "/path2/");
await unzip("output.tar", "/path2/");

cli

Installation

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 haven't installed deno before 👇

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 project

Tar

nzip -t tar # In your project

Configuration File

// nzip.config.ts
export default {
  // Name of the file after successful compression, default is 'default'
  name: "demo",
  // Custom rules to skip
  skip: [/script/],
};
nzip # Merges configuration automatically

Decompression

nzip de <your.zip|your.rar> <output>

Refs


License

Made with markthree Published under MIT License.

About

Intelligent fast compression and decompression cli | 智能化快速解压和压缩 cli

https://deno.land/x/nzip

License:MIT License


Languages

Language:TypeScript 100.0%