JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10250
  • Score
    100M100P100Q163053F
  • License MIT

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

Package Exports

  • semver-extra

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (semver-extra) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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