Package Exports
- @apollo/utils.createhash
- @apollo/utils.createhash/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@apollo/utils.createhash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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");