https://github.com/trikko/tshare
The fastest way to share your files on the web, for free
https://github.com/trikko/tshare
d dlang filesharing sharing transfer-files
Last synced: about 2 months ago
JSON representation
The fastest way to share your files on the web, for free
- Host: GitHub
- URL: https://github.com/trikko/tshare
- Owner: trikko
- License: mit
- Created: 2023-10-04T22:22:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-13T14:30:52.000Z (over 1 year ago)
- Last Synced: 2024-12-29T20:50:22.496Z (4 months ago)
- Topics: d, dlang, filesharing, sharing, transfer-files
- Language: D
- Homepage: https://tshare.download
- Size: 1.22 MB
- Stars: 131
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-d - tshare - fast file sharing from cli, using transfer.sh (End-user applications / XML)
README
# tshare [](https://github.com/trikko/tshare/actions/workflows/d.yml)
The fastest way to share your local files on the web (Windows / Linux / macOS), for free. \
Powered by [transfer.sh](https://transfer.sh) online service.
# get tshare 🚀
| Linux + macOS | Windows |
|:------------------------------------:|:----------------------------------------------------------------------:|
| ```curl https://tshare.download \| bash``` | ```curl -L https://tshare.download/windows.zip -o tshare.zip``` |# examples
minimal
```bash
tshare /path/to/file
```keep file online for two days / max 10 downloads
```bash
tshare -t 2 -d 10 /path/to/file
```encrypt using [gpg](https://gnupg.org/download/index.html) if installed on your system
```bash
tshare -c your-secret-password /path/to/file
```save a copy of your mysql db
```bash
mysqldump wordpress_db | tshare --stdin -c secret_password -o export.sql
```# pre-builds binaries
[](https://github.com/trikko/tshare/releases/latest/download/tshare-windows-x86_64.zip)
[](https://github.com/trikko/tshare/releases/latest/download/tshare-linux-x86_64.zip)
[](https://github.com/trikko/tshare/releases/latest/download/tshare-macos-x86_64.zip).Binaries are experimental: feedbacks are welcome :)
# install with homebrew (Linux, macOS) 🍺
If you have ```homebrew``` on your MacOS/Linux, you can install ```tshare``` using a local formula:
```
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source ./tshare.rb
```You're done 🎉
Run ```tshare -h```, star this repository and have fun.
# build from source (Linux, macOS, Windows)
_If you don't have homebrew_, you need a dlang compiler to compile tshare by yourself.
### install a dlang compiler
- Ubuntu: ```sudo apt install dub ldc libcurl-dev```
- macOS: ```brew install ldc dub```
- Windows: *see below*
*or*download an official package [here](https://dlang.org/download.html#dmd)
### compile tshare
```d
dub build
```