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

1.1.2 • Public • Published

Installation

npm install --save @types/safe-compare

Summary

This package contains type definitions for safe-compare (https://github.com/Bruce17/safe-compare#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-compare.

index.d.ts

export = safeCompare;

/**
 * Do a constant time string comparison. Always compare the complete strings
 * against each other to get a constant time. This method does not short-cut
 * if the two string's length differs.
 */
declare function safeCompare(a: string, b: string): boolean;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Vadim Belorussov.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/safe-compare

      Weekly Downloads

      7,960

      Version

      1.1.2

      License

      MIT

      Unpacked Size

      3.15 kB

      Total Files

      5

      Last publish

      Collaborators

      • types