JSPM

@apollo/utils.createhash

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1285768
  • Score
    100M100P100Q190787F
  • License MIT

Node-agnostic hashing utility

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