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

semver-extra

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semver-extra

semver-extra contains methods that aren't included in the vanilla semver package.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
308
decreased by-69.5%
Maintainers
1
Weekly downloads
 
Created
Source

semver-stable NPM version Build Status Dependency Status

Manage stable semver versions

Install

$ npm install semver-stable --save

Usage

var stable = require('semver-stable');

stable.is(version)

stable.is('1.2.3');        // -> true
stable.is('1.2.3-stable'); // -> false
stable.is('1.2.3-alpha');  // -> false

Returns Boolean whether the version is stable.

stable.maxSatisfying(versions, range)

  • versions Array.<semver>
  • range String semver range
stable.maxSatisfying([
  '1.3.3',      // not match the range
  '1.2.3-beta', // not a stable version
  '1.2.2',      // that's it
  '1.2.1',      // much older
  '1.1.2'
], '~1.2.0');
// -> 1.2.2

Returns String the latest stable version matches the range.

stable.max(versions);

Returns String the max stable version.

License

MIT

Keywords

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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