Modules@robinpath/archive
@robinpath/archive
0.1.1PublicCreate and extract .zip and .tar.gz file archives
@robinpath/archive
Create, extract, and manipulate .zip and .any archives
Why use this module?
The archive module lets you:
- Create a .zip archive from files and directories
- Extract a .zip archive
- List entries in a .zip file
- Read a file from inside a .zip without extracting
- Create a .any archive
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/archive
Quick Start
No credentials needed — start using it right away:
archive.extractZip "./backup.zip" "./restored"
Available Functions
| Function | Description |
|---|---|
archive.createZip | Create a .zip archive from files and directories |
archive.extractZip | Extract a .zip archive |
archive.listZip | List entries in a .zip file |
archive.readFromZip | Read a file from inside a .zip without extracting |
archive.createTarGz | Create a .any archive |
archive.extractTarGz | Extract a .any archive |
archive.addToZip | Add a file or directory to an existing .zip |
archive.removeFromZip | Remove an entry from a .zip |
Examples
Extract a .zip archive
archive.extractZip "./backup.zip" "./restored"
List entries in a .zip file
archive.listZip "./backup.zip"
Read a file from inside a .zip without extracting
archive.readFromZip "./backup.zip" "config.json"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/archive";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
archive.extractZip "./backup.zip" "./restored"
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
utilities
0
@robinpath/barcode
v0.1.1robinpath
QR code generation, EAN/UPC barcode validation, ISBN conversion, and Luhn checksum
0 downloads
...
Install
$ robinpath install @robinpath/archive Version0.1.1
LicenseMIT
Unpacked Size4.6 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

