alanshaw / ipfs-only-hash

#️⃣ Just enough code to calculate the IPFS hash for some data
MIT License
135 stars 28 forks source link

feat: add cli #16

Closed olizilla closed 3 years ago

olizilla commented 3 years ago

just a tiny cli so that folks can ipfs-only-hash straight from npx ✨🎷🐩

echo "hello world" | ipfs-only-hash
bafkreifjjcie6lypi6ny7amxnfftagclbuxndqonfipmb64f2km2devei4

This PR lives dangerously, and sets the cid-version to 1 by default. We're starting to recommend folks use ipfs:// scheme urls and subdomain gateway urls, and changing the default is comming soon https://github.com/ipfs/go-ipfs/issues/4143#issuecomment-806160177

License: MIT Signed-off-by: Oli Evans oli@tableflip.io