Skip to content

JLeopoldA/codeswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

codeswap

codeswap is a tool that allows you to share and receive programming scripts. An account is not required or needed. codeswap is a replacement wrapped for node. To use codeswap, replace the word node on the command line when executing codeswap.

** Installation **

codeswap can be installed by using npm.
npm install -g codeswap
This will install codeswap globally for use in any directory in which you decide to share a file.

Usage

codeswap wraps your application, so you can pass all of the arguments you would normally pass without using node.
codeswap [parameters]

For CLI options, use the -h (--help or help) argument:
codeswap -h
codeswap --help
codeswap help

Using codeswap is simple with the following syntaxes.
NOTE In order to share a file, the file must be located within the current working directory of your terminal, otherwise you must provide a path to the file. When a file is downloaded it is saved within the current working directory of your terminal.

Sharing File with codeswap

To share a file, simply use the -s (--share or share) argument:
codeswap -s [fileName]
codeswap --share [fileName]
codeswap share [fileName]

After executing this script, a copy of your file is sent to the codeswap database and you are provided with a KEY and ID. In order for your file to be downloaded a KEY and ID must be provided.

Downloading File with codeswap

To download a file, simply use the -d (--download or download) argument:
codeswap -d [KEY] [ID]
codeswap --download [KEY] [ID]
codeswap download [KEY] [ID]

After executing this script, the desired file is retrieved from the codeswap database and immediately deleted from the database. The file will be saved under its original name within the current working directory of your terminal.

Updates

I intend to continue updating codeswap as a passion project for terminal based file sharing. Any suggestions for future updates or comments are welcomed at cebafactory@gmail.com. Thank you for using codeswap!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published