3.0.0 • Published 1 year ago

@apollo/utils.createhash v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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");