npm.io
1.1.2 • Published 2 years ago

@types/safe-compare

Licence
MIT
Version
1.1.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Vadim Belorussov.