Skip to content

iQuickDev/Safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

safe - A Command Line Utility for Managing Tar Archives

safe is a Node.js command line utility that allows the user to create, extract, and manage tar archives. The utility makes use of various external modules such as aes256 for encryption, tar for creating and extracting tar archives, and fs for interacting with the file system. Additionally, the utility also includes custom modules such as Logger and ArchiveManager which are used to handle logging and archive management respectively.

Showcase

showcase

Features

  • Create tar archives with option to encrypt them with a password
  • Add files to existing tar archives
  • Remove files from existing tar archives
  • Extract tar archives
  • View the contents of tar archives
  • Provide a password for encrypted tar archives

Usage

safe <action> <arg1> <arg2>...

Actions

-c <name> <file1> <file2> <fileN>: creates an archive
-a <archive> <file1> <file2> <fileN>: add a file to the archive
-r <archive> <file1> <file2> <fileN>: remove a file from the archive
-e <archive> <destination>: extract the archive
-v <archive>: view the contents of the archive
-p <password>: provide the archive password
-h: view the help message

Examples

Create an archive named "example" containing the files "file1.txt" and "file2.txt":

safe -c example file1.txt file2.txt

Add the file "file3.txt" to the archive "example.tar.safe":

safe -a example.tar.safe file3.txt

Extract the archive "example.tar.safe" to the destination "./example":

safe -e example.tar.safe ./example

Installation

Linux / MacOS

sudo curl -LJ -o /usr/bin/safe "https://github.com/iQuickDev/Safe/releases/download/v1.0/safe-linux" && sudo chmod 0775 /usr/bin/safe

Windows

  • Download the binary (safe-win.exe)
  • Add it to the PATH

Contributing

Clone this repository

git clone https://github.com/iQuickDev/safe.git

Install dependencies

npm install

Run the script

node index.js

About

CLI Tool to manage TAR encrypted archives

Resources

License

Stars

Watchers

Forks

Packages

No packages published