@arcblock/ipfs-only-hash
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@arcblock/ipfs-only-hash

Just enough code to calculate the IPFS hash for some data

Install

npm install @arcblock/ipfs-only-hash

Usage

const { onlyHash } = require('@arcblock/ipfs-only-hash')
const data = 'hello world!';
const hash = await onlyHash(data);
console.log(hash); // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j

/@arcblock/ipfs-only-hash/

    Package Sidebar

    Install

    npm i @arcblock/ipfs-only-hash

    Weekly Downloads

    598

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    4.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • wangshijun
    • polunzh
    • mave99a
    • gxw