🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/archive

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/archive

Create and extract .zip and .tar.gz file archives

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
43
-20.37%
Maintainers
4
Weekly downloads
 
Created
Source

@robinpath/archive

Create, extract, and manipulate .zip and .any archives

Category Functions Auth License

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

robinpath add @robinpath/archive

Quick Start

No credentials needed — start using it right away:

archive.extractZip "./backup.zip" "./restored"

Available Functions

FunctionDescription
archive.createZipCreate a .zip archive from files and directories
archive.extractZipExtract a .zip archive
archive.listZipList entries in a .zip file
archive.readFromZipRead a file from inside a .zip without extracting
archive.createTarGzCreate a .any archive
archive.extractTarGzExtract a .any archive
archive.addToZipAdd a file or directory to an existing .zip
archive.removeFromZipRemove 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.

License

MIT

Keywords

archive

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts