npm.io
3.0.1 • Published 1 year ago

@apollo/utils.createhash

Licence
MIT
Version
3.0.1
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
41

createHash

Equivalent to Node.js's crypto.createHash. Uses the Node.js builtin if present, otherwise it falls back the the sha.js package's implementation.

Usage

import { createHash } from "@apollo/utils.createhash";

createHash("sha256").update("foo").digest("hex");

Keywords