UNPKG

@arcblock/ipfs-only-hash

Version:

Just enough code to calculate the IPFS hash for some data

3 lines (2 loc) 156 B
import { UserImporterOptions } from "ipfs-unixfs-importer"; export declare function onlyHash(content: any, options?: UserImporterOptions): Promise<string>;