@apollo/utils.createhash
v1.1.0 apollo graphql typescript node
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");
npm i @apollo/[email protected]
Metadata
- MIT
- >=12.13.0
- Apollo
- released 4/26/2022