is-later
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Is Later Travis CI Build Status

Check if a version is later than another.

NPM Badge

Install

npm install is-later

Usage

const isLater = require("is-later");
 
isLater("1.0.0", "2.0.0");
//=> false
 
isLater("1.0.0", "1.0.0");
//=> false
 
isLater("1.0.0", "0.0.0");
//=> true

API

isLater(a, b)

a

Type: string

The first version to compare.

b

Type: string

The second version to compare.

Package Sidebar

Install

npm i is-later

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.21 kB

Total Files

6

Last publish

Collaborators

  • richienb