@sculkdev/ruhaste
v1.0.4
Published
CLI client for the Ruhaste pastebin service
Maintainers
Readme
ruhaste
CLI client for hastebin.ru — a Hastebin-compatible pastebin.
Install
npm install -g @sculkdev/ruhasteRequires Node.js ≥ 18. No external dependencies.
Usage
Post a paste
# 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.
Fetch a paste
ruhaste get abc123
ruhaste get https://hastebin.ru/abc123Help
ruhaste helpConfiguration
| 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" | ruhasteComposing with other tools
# 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
