# @types/semver-compare

> TypeScript definitions for semver-compare

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

## Install

```sh
npm install @types/semver-compare
pnpm add @types/semver-compare
yarn add @types/semver-compare
bun add @types/semver-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.0.3 |
| Published | 2023-11-07 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.1 (ts2.8) — 2019-11-18
- 1.0.0 (ts2.0) — 2017-08-31
- 1.0.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/semver-compare`

# Summary
This package contains type definitions for semver-compare (https://github.com/substack/semver-compare).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver-compare.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver-compare/index.d.ts)
````ts
declare function semverCompare(a: string, b: string): -1 | 0 | 1;

export = semverCompare;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Kovács Vince](https://github.com/vincekovacs), and [Linus Unnebäck](https://github.com/LinusU).

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