A no-brainer pastebin on IPFS - think distributed sprunge.us
Project description
A no-brainer pastebin on IPFS - think distributed http://sprunge.us
Why this if there’s ipfs add?
Good question! ipfs add currently doesn’t support showing a full link, let alone xclip-compatible output - the user has to select the hash, paste it in a browser and manually add the rest of their preferred IPFS link format.
Usage
A typical stdin pipe situation:
$ echo "Hello, world" | mersh -t gateway
https://ipfs.io/ipfs/QmaMLRsvmDRCezZe2iebcKWtEzKNjBaQfwcu7mcpdm8eY2
How about some file input?
$ echo "Hello, friends." > file.txt
$ mersh file.txt
/ipfs/QmZRyLRgWiXN2Zks6rjH5jPYQzbWj3BYTWERa9m7QQc3kW
Or maybe you only need the hash? No problem:
$ echo "Rollin' with the hash\!" | mersh -t hash
QmWjZ4dF4brEPqjtWx2EqZbeAmcpHiCVkhAxJyi51TPJzh
Features
Read from stdin or a specified file
Only the link gets printed to stdout, everything else is stderr - effortlessly pipe it to your favourite clipboard manager!
Output the link in the format you need:
Regular: /ipfs/<hash>
Gateway: https://ipfs.io/ipfs/<hash> - great for sharing links with non-IPFS friends
Local: http://localhost:8080/ipfs/<hash>
Bare: <hash>
Planned Features
(optional) static WebUI
Clipboard support
History
Pre-release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters