Socket
Socket
Sign inDemoInstall

sls-version

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sls-version

Typescript utilities for manipulating SLS versions


Version published
Weekly downloads
124
increased by45.88%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 13 Jun 2018

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc