Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@apollo/utils.createhash

apollographql5.8mMIT3.0.1TypeScript support: included

Node-agnostic hashing utility

apollo, graphql, typescript, node

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