@li0ard/bash
Bash (STB 34.101.77) hash function in pure TypeScript
docs
# from NPM
npm i @li0ard/bash
# from JSR
bunx jsr i @li0ard/bash
import { Bash } from "@li0ard/bash"
let hash = new Bash(32)
hash.update(new TextEncoder().encode("hello world"))
console.log(hash.digest())
// -- OR --
import { bash256 } from "@li0ard/bash"
console.log(bash256(new TextEncoder().encode("hello world")))