Attributes
Includes Deno configuration
Repository
Current version released
3 months ago
Dependencies
std
nzip
Intelligent fast compression and decompression cli
Support
cli
- Support for
tar
andunzip
- Ignores common caching of
nodejs
- Support for c12 configuration (name: nzip)
program
- Multi-file bundling
- Support for
tar
andunzip
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
tar
is supported by thedeno
standard library archivezip
is supported by gildas-lormeau/zip.js, so it is particularly fast
License
Made with markthree Published under MIT License.