Skip to content

thekamalkashyap/xshare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xshare

Version License: MIT

Quickly shares files from your command line


Gmail LinkedIn


$ xshare https://avatars.githubusercontent.com/u/104472541

File uploaded successfully!
Token: 9H_u7UwNvHRmmiCcwreSDBG2d4h0cllaBmXSIl6lz-o
URL: https://0x0.st/Xcds.jpg

📑 Table of Contents

Features

  • Quickly shares files from your command line
  • create a shareable link for the file
  • share local or remote files
  • create secret links for sensitive files
  • set expiration time for the link
  • delete the file after sharing

Installation And Setup

Usage

  1. Share a file
xshare <file-path/url>
  1. Share a file with secret link
xshare -s <file-path/url>
  1. Delete a file
xshare -t token -d https://0x0.st/file-url
  1. Share a file with expiration time
xshare -e <hours/epoch-miliseconds> <file-path/url>
  1. For help
xshare -h

Usage: xshare [options] <file-path/url>

Options:
  -t, --token <token>                       token to use for upload
  -d, --delete                              delete the file immediately
  -s, --secret                              generate a URL which is not easily guessable
  -e, --expires <hours/epoch milliseconds>  set an expiration date for the file
  -h, --help                                display help for command

Installation

Using pnpm

pnpm install -g xshare

or

npx xshare <file-path/url>

development environment

To get a development environment running:

  1. Clone the project and install its dependencies using pnpm
git clone https://github.com/thekamalkashyap/xshare.git
  1. Navigate to the project's directory:
cd xshare
  1. Install the project's dependencies:
pnpm install
  1. make th desired changes in the code

  1. Running The Application
pnpm start

Author

👤 thekamalkashyap

About

Quickly shares files from your command line

Topics

Resources

Stars

Watchers

Forks