@types/sha1

  • Version 1.1.5
  • Published
  • 4.11 kB
  • 1 dependency
  • MIT license

Install

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

Overview

TypeScript definitions for sha1

Index

Functions

Functions

function main

main: {
(message: string | Buffer, options?: Sha1AsStringOptions): string;
(message: any, options?: Sha1AsBytesOptions): Uint8Array;
(message: any, options?: Sha1Options): string | Uint8Array;
};
  • js function for hashing messages with SHA1

    Parameter message

    a string or buffer to hash

    Parameter options

    an options object

    Returns

    the resultant SHA1 hash of the given message

Package Files (1)

Dependencies (1)

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/sha1.

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