@types/md5

  • Version 2.3.5
  • Published
  • 4.55 kB
  • No dependencies
  • MIT license

Install

npm i @types/md5
yarn add @types/md5
pnpm add @types/md5

Overview

TypeScript definitions for md5

Index

Functions

function md5

md5: {
(
message: string | number[] | Uint8Array,
options: md5.Options & { asBytes: true }
): number[];
(
message: string | number[] | Uint8Array,
options?: Pick<md5.Options, 'asString' | 'encoding'>
): string;
(message: string | number[] | Uint8Array, options?: md5.Options):
| string
| number[];
};
  • Calculate the MD5 hash of a message.

    Parameter message

    Message to hash.

    Parameter options

    Input and output options.

    Returns

    MD5 hash.

Interfaces

interface Options

interface Options {}

    property asBytes

    asBytes?: boolean | undefined;

      property asString

      asString?: boolean | undefined;

        property encoding

        encoding?: 'binary' | string | undefined;

          Package Files (1)

          Dependencies (0)

          No dependencies.

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (0)

          No peer dependencies.

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/md5.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/md5)
          • HTML
            <a href="https://www.jsdocs.io/package/@types/md5"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>