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

sls-version

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sls-version

Typescript utilities for manipulating SLS versions

  • 0.2.1
  • npm
  • Socket score

Version published
Weekly downloads
151
decreased by-58.97%
Maintainers
1
Weekly downloads
 
Created
Source

slsversion

Typescript utilities for manipulating SLS versions.

Overview

Comparison:

  • eq(lhs, rhs)lhs == rhs
  • gt(lhs, rhs)lhs > rhs
  • gte(lhs, rhs)lhs >= rhs
  • lt(lhs, rhs)lhs < rhs
  • lte(lhs, rhs)lhs <= rhs

Parsing:

  • isValid() — Determine if a version string is valid
  • major() — Extract the major version number from a version string
  • minor() — Extract the minor version number from a version string
  • patch() — Extract the patch version number from a version string
  • rc() — Extract the release candidate number from a version string
  • snapshot()— Extract the snapshot number from a version string
  • isReleaseCandidate() — Returns true of the version is a release candidate
  • isSnapshot() — Returns true if the version is a snapshot version

FAQs

Package last updated on 04 Jun 2018

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