@types/object-hash

  • Version 2.2.1
  • Published
  • 6.06 kB
  • No dependencies
  • MIT license

Install

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

Overview

TypeScript definitions for object-hash

Index

Functions

function keys

keys: (object: {} | null) => string;
  • See Also

    • https://github.com/puleos/object-hash#hashkeysvalue

function keysMD5

keysMD5: (object: {} | null) => string;
  • See Also

    • https://github.com/puleos/object-hash#hashkeysmd5value

function MD5

MD5: (object: {} | null) => string;
  • See Also

    • https://github.com/puleos/object-hash#hashmd5value

function objectHash

objectHash: typeof objectHash;
  • See Also

    • https://github.com/puleos/object-hash#hashvalue-options

function sha1

sha1: (object: {} | null) => string;
  • See Also

    • https://github.com/puleos/object-hash#hashsha1value

function writeToStream

writeToStream: {
(value: any, stream: Stream): void;
(value: any, options: Options, stream: Stream): void;
};
  • See Also

    • https://github.com/puleos/object-hash#hashwritetostreamvalue-options-stream

Interfaces

interface BaseOptions

interface BaseOptions {}

    property algorithm

    algorithm?: 'sha1' | 'md5' | 'passthrough' | undefined;
    • 'sha1'

    property excludeKeys

    excludeKeys?: ((key: string) => boolean) | undefined;

      property excludeValues

      excludeValues?: boolean | undefined;
      • false

      property ignoreUnknown

      ignoreUnknown?: boolean | undefined;
      • false

      property replacer

      replacer?: ((value: any) => any) | undefined;

        property respectFunctionNames

        respectFunctionNames?: boolean | undefined;
        • true

        property respectFunctionProperties

        respectFunctionProperties?: boolean | undefined;
        • true

        property respectType

        respectType?: boolean | undefined;
        • true

        property unorderedArrays

        unorderedArrays?: boolean | undefined;
        • false

        property unorderedObjects

        unorderedObjects?: boolean | undefined;
        • true

        property unorderedSets

        unorderedSets?: boolean | undefined;
        • true

        interface NormalOption

        interface NormalOption extends BaseOptions {}

          property encoding

          encoding?: 'hex' | 'binary' | 'base64' | undefined;
          • 'hex'

          interface Stream

          interface Stream {}

            method update

            update: (
            chunk: any,
            encoding: BufferEncoding,
            callback: (error?: Error | null) => void
            ) => void;

              method write

              write: (
              chunk: any,
              encoding: BufferEncoding,
              callback: (error?: Error | null) => void
              ) => void;

                interface WithBufferOption

                interface WithBufferOption extends BaseOptions {}

                  property encoding

                  encoding: 'buffer';

                    Type Aliases

                    type BufferEncoding

                    type BufferEncoding =
                    | 'ascii'
                    | 'base64'
                    | 'binary'
                    | 'hex'
                    | 'latin1'
                    | 'ucs-2'
                    | 'ucs2'
                    | 'utf-8'
                    | 'utf16le'
                    | 'utf8';

                      type Options

                      type Options = NormalOption | WithBufferOption;

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

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