@types/create-hash

  • Version 1.2.2
  • Published
  • 4.44 kB
  • 1 dependency
  • MIT license

Install

npm i @types/create-hash
yarn add @types/create-hash
pnpm add @types/create-hash

Overview

TypeScript definitions for create-hash

Index

Functions

function createHash

createHash: (
algorithm: createHash.algorithm,
options?: any
) => createHash.HashAlgorithm;

    Interfaces

    interface HashAlgorithm

    interface HashAlgorithm {}

      method digest

      digest: { (target: encoding): string; (): any };

        method end

        end: () => void;

          method read

          read: () => void;

            method update

            update: (
            data: string | Buffer | TypedArray | DataView,
            encoding?: string
            ) => this;

              method write

              write: (
              data: string | Buffer | TypedArray | DataView,
              encoding?: string
              ) => this;

                Type Aliases

                type algorithm

                type algorithm =
                | 'md5'
                | 'rmd160'
                | 'ripemd160'
                | 'sha'
                | 'sha1'
                | 'sha224'
                | 'sha256'
                | 'sha384'
                | 'sha512';

                  type encoding

                  type encoding = 'utf8' | 'hex' | 'base64';

                    type TypedArray

                    type TypedArray =
                    | Uint8Array
                    | Uint8ClampedArray
                    | Uint16Array
                    | Uint32Array
                    | Int8Array
                    | Int16Array
                    | Int32Array
                    | Float32Array
                    | Float64Array;

                      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/create-hash.

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