UNPKG

1.06 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/create-hmac`
3
4# Summary
5This package contains type definitions for create-hmac (https://github.com/crypto-browserify/createHmac).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-hmac.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-hmac/index.d.ts)
10````ts
11/// <reference types="node" />
12
13import { Hmac } from "crypto";
14
15export = createHmac;
16
17declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;
18
19declare namespace createHmac {
20 type Algorithm =
21 | "rmd160"
22 | "ripemd160"
23 | "md5"
24 | "sha"
25 | "sha1"
26 | "sha224"
27 | "sha256"
28 | "sha384"
29 | "sha512";
30}
31
32````
33
34### Additional Details
35 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
36 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
37
38# Credits
39These definitions were written by [BendingBender](https://github.com/BendingBender).
40
\No newline at end of file