UNPKG

@pnpm/crypto.polyfill

Version:

Polyfill for functions in the crypto library

4 lines (3 loc) 182 B
import crypto from 'crypto'; export type Hash = (algorithm: string, data: crypto.BinaryLike, outputEncoding: crypto.BinaryToTextEncoding) => string; export declare const hash: Hash;