# @types/safe-compare

> TypeScript definitions for safe-compare

Latest version **1.1.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/safe-compare
pnpm add @types/safe-compare
yarn add @types/safe-compare
bun add @types/safe-compare
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2023-11-07 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/safe-compare
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-compare
- npm.io page: https://npm.io/package/@types/safe-compare

## Recent versions

- 1.1.2 (latest) — 2023-11-07
- 1.1.0 (ts2.0) — 2017-12-11
- 1.1.1 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-compare/index.d.ts)
````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](https://github.com/bevalorous).

---
_Source: https://npm.io/package/@types/safe-compare · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
