New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

is-stable-version

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-stable-version

Utility function to see if a SemVer version isn't a prerelease.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

is-stable-version

CI Badge NPM Badge

Utility function to see if a SemVer version isn't a prerelease.

Installation

Install is-stable-version through npm:

$ npm install is-stable-version

Usage

import isStableVersion from "is-stable-version";

isStableVersion("1.0.0"); //=> true
isStableVersion("1.0.0-alpha"); //=> false

isStableVersion("=v1.0.0"); //=> true
isStableVersion("=v1.0.0-alpha"); //=> false

isStableVersion(" = v 1.0.0"); //=> throws RangeError
isStableVersion(" = v 1.0.0", { loose: true }); //=> true

isStableVersion("1.0.0alpha"); //=> throws RangeError
isStableVersion("1.0.0alpha", { loose: true }); //=> false

License

This package is available as open source under the terms of the MIT License.

Keywords

is

FAQs

Package last updated on 02 Feb 2021

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