CLI client for hastebin.ru — a Hastebin-compatible pastebin.
npm install -g @sculkdev/ruhasteRequires Node.js ≥ 18. No external dependencies.
# from stdin
echo "hello world" | ruhaste
cat file.txt | ruhaste
# from a file
ruhaste ./notes.txt
# bash process substitution
ruhaste <(echo "hello")Prints the URL of the created paste, e.g. https://hastebin.ru/abc123.
ruhaste get abc123
ruhaste get https://hastebin.ru/abc123ruhaste help| Variable | Default | Description |
|---|---|---|
RUHASTE_SERVER |
https://hastebin.ru |
Base URL of the server |
Point at a self-hosted instance:
export RUHASTE_SERVER=http://localhost:7331
echo "test" | ruhaste# share the output of a command
npm test 2>&1 | ruhaste
# fetch a paste into a variable
content=$(ruhaste get abc123)
# open a paste in the browser (macOS/Linux)
ruhaste ./file.txt | xargs opens