Quickly shares files from your command line
$ xshare https://avatars.githubusercontent.com/u/104472541
File uploaded successfully!
Token: 9H_u7UwNvHRmmiCcwreSDBG2d4h0cllaBmXSIl6lz-o
URL: https://0x0.st/Xcds.jpg
- 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
- Share a file
xshare <file-path/url>
- Share a file with secret link
xshare -s <file-path/url>
- Delete a file
xshare -t token -d https://0x0.st/file-url
- Share a file with expiration time
xshare -e <hours/epoch-miliseconds> <file-path/url>
- 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
pnpm install -g xshare
or
npx xshare <file-path/url>
To get a development environment running:
- Clone the project and install its dependencies using pnpm
git clone https://github.com/thekamalkashyap/xshare.git
- Navigate to the project's directory:
cd xshare
- Install the project's dependencies:
pnpm install
- make th desired changes in the code
- Running The Application
pnpm start
👤 thekamalkashyap