Simple hasher using multihash and async functions.
npm install multihasher
yarn add multihasher
pnpm add multihasher
bun add multihasher
let hasher = require('hasher')('sha256') let hash = await hasher(Buffer.from('test')) // return hash as B58 string. console.log(hash) // 'QmeYzshSoNHr2QUWqmkMAy6raRhcmzTuroy7johWJNn3fY'