@snyk/ruby-semver
- Version 4.2.0
- Published
- 146 kB
- 4 dependencies
- Apache-2.0 license
Install
npm i @snyk/ruby-semver
yarn add @snyk/ruby-semver
pnpm add @snyk/ruby-semver
Overview
node-semver compatible API with RubyGems semantics
Index
Functions
function cmp
cmp: (v1: MaybeGemVersion, comparator: string, v2: MaybeGemVersion) => boolean;
function compare
compare: (v1: MaybeGemVersion, v2: MaybeGemVersion) => Ordering | undefined;
function diff
diff: (v1: MaybeGemVersion, v2: MaybeGemVersion) => string | null;
function eq
eq: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function gt
gt: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function gte
gte: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function gtr
gtr: () => never;
function inc
inc: () => never;
function intersects
intersects: (r1: string, r2: string) => boolean;
function lt
lt: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function lte
lte: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function ltr
ltr: () => never;
function major
major: (v: MaybeGemVersion) => Segment | null;
function maxSatisfying
maxSatisfying: (versions: MaybeGemVersion[], range: string) => string;
function minor
minor: (v: MaybeGemVersion) => Segment | null;
function minSatisfying
minSatisfying: (versions: MaybeGemVersion[], range: string) => string;
function neq
neq: (v1: MaybeGemVersion, v2: MaybeGemVersion) => boolean;
function outside
outside: () => never;
function patch
patch: (v: MaybeGemVersion) => Segment | null;
function platform
platform: (v: MaybeGemVersion) => Platform | null;
function prerelease
prerelease: (v: MaybeGemVersion) => Segment[] | null;
function rcompare
rcompare: (v1: MaybeGemVersion, v2: MaybeGemVersion) => Ordering | undefined;
function satisfies
satisfies: (version: MaybeGemVersion, range: string) => boolean;
function valid
valid: (v: MaybeGemVersion) => string | null;
function validRange
validRange: (range: string) => string | null;
Package Files (4)
Dependencies (4)
Dev Dependencies (9)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@snyk/ruby-semver
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@snyk/ruby-semver)
- HTML<a href="https://www.jsdocs.io/package/@snyk/ruby-semver"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 4271 ms. - Missing or incorrect documentation? Open an issue for this package.