在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:alanshaw/ipfs-only-hash开源软件地址:https://github.com/alanshaw/ipfs-only-hash开源编程语言:JavaScript 100.0%开源软件介绍:ipfs-only-hash
Calculate the IPFS hash for some data without having to install or run an IPFS node. Try it out with npx:
Installnpm i ipfs-only-hash UsageFrom the command line ipfs-only-hash <file>
# or pipe in
echo "hello world" | ipfs-only-hash As a library const Hash = require('ipfs-only-hash')
const data = 'hello world!'
const hash = await Hash.of(data)
console.log(hash) // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j APIconst Hash = require('ipfs-only-hash')
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论