Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-semver

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-semver - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "simple-semver",
"version": "1.1.0",
"version": "1.1.1",
"description": "simple-semver",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -28,3 +28,17 @@ [![Build Status](https://travis-ci.org/Stanlous/simple-semver.svg?branch=master)](https://travis-ci.org/Stanlous/simple-semver)

```js
const simple_semver = require('simple-semver')
const simpleSemver = require('simple-semver')
simpleSemver.gt('1.3.0', '1.1.0') // true (gt means greater than)
simpleSemver.lt('1.1.0', '1.5.0') // true (lt means less than)
simpleSemver.gte('1.3.0', '1.1.0') // true (gte means greater than or equal)
simpleSemver.gte('1.3.0', '1.3.0') // true
simpleSemver.gte('1.1.0', '1.3.0') // false
simpleSemver.lte('1.1.0', '1.3.0') // true (lte means less than or equal)
simpleSemver.lte('1.3.0', '1.3.0') // true
simpleSemver.lte('1.3.0', '1.1.0') // false
simpleSemver.lt('1.1.0-alpha', '1.5.0') // true ('-alpha' will be ignore)
```

@@ -31,0 +45,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc