1.5.0-next.1699017281.d286682a0e786a29df5a30062c3764083ba7dac0 • Published 2 years ago

version-range v1.5.0-next.1699017281.d286682a0e786a29df5a30062c3764083ba7dac0

Weekly downloads
15,774
License
Artistic-2.0
Repository
github
Last release
2 years ago

Check version ranges like >=N and X || Y || Z with support for Node.js, Web Browsers, Deno, and TypeScript.

Usage

Complete API Documentation.

Super fast and super compatible version range comparison for the most common use cases.

import satisfies from 'version-range'
console.log(satisfies('1.0', '>=1.0')) // true
console.log(satisfies('1.0', '1')) // true
console.log(satisfies('1.0', '1 || 2')) // true
console.log(satisfies('1.0.0', '5 || <=2')) // true

Doesn't support && and -releaseTag.

npm

Discover the release history by heading on over to the HISTORY.md file.

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

These amazing people are maintaining this project:

No sponsors yet! Will you be the first?

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Unless stated otherwise all works are:

and licensed under:

4.14.0

2 years ago

4.13.0

2 years ago

4.12.0

2 years ago

4.9.0

2 years ago

4.8.0

2 years ago

1.5.0

2 years ago

2.0.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.1

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

4.11.0

2 years ago

4.10.0

2 years ago

1.4.0

4 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago