@apollo/utils.createhash

v1.0.0
Node-agnostic hashing utility
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 <18.0
  • Apollo
  • released 2/16/2022

Downloads

Maintainers