@types/create-hmac
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Installation

npm install --save @types/create-hmac

Summary

This package contains type definitions for create-hmac (https://github.com/crypto-browserify/createHmac).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-hmac.

index.d.ts

/// <reference types="node" />

import { Hmac } from "crypto";

export = createHmac;

declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;

declare namespace createHmac {
    type Algorithm =
        | "rmd160"
        | "ripemd160"
        | "md5"
        | "sha"
        | "sha1"
        | "sha224"
        | "sha256"
        | "sha384"
        | "sha512";
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/create-hmac

Weekly Downloads

20,084

Version

1.1.3

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • types