@apollo/utils.createhash
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Dependents (6)

Package Sidebar

Install

npm i @apollo/utils.createhash

Weekly Downloads

1,024,140

Version

3.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

11

Last publish

Collaborators

  • dkuc
  • glasser
  • trevor.scheer
  • apollo-bot