1 | # Installation
|
2 | > `npm install --save @types/create-hmac`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for create-hmac (https://github.com/crypto-browserify/createHmac).
|
6 |
|
7 | # Details
|
8 | Files 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 |
|
13 | import { Hmac } from "crypto";
|
14 |
|
15 | export = createHmac;
|
16 |
|
17 | declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;
|
18 |
|
19 | declare 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
|
39 | These definitions were written by [BendingBender](https://github.com/BendingBender).
|
40 |
|
\ | No newline at end of file |