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

semver-sort

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semver-sort - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "semver-sort",
"version": "0.0.1",
"version": "0.0.2",
"description": "Sort array of semver string even which is exist in a strings.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -26,6 +26,6 @@ # semver-sort [![Build Status](https://travis-ci.org/ragingwind/semver-sort.svg?branch=master)](https://travis-ci.org/ragingwind/semver-sort)

semverSort().acs(version);
semverSort.acs(version);
//=> [ 'v0.0.2', 'v0.0.9', 'v0.1.1', '1.1.1', '1.2.2', '2.0.1' ]
semverSort().desc(version);
semverSort.desc(version);
//=> [ '2.0.1', '1.2.2', '1.1.1', 'v0.1.1', 'v0.0.9', 'v0.0.2' ]

@@ -43,3 +43,5 @@

semverSort().acs(version);
sortSemver.asc(tags.map(function (tag) {
return tag.ref;
}));
//=> [ 'refs/tags/v0.1.0', 'refs/tags/v0.1.1', 'refs/tags/v1.0.0', 'refs/tags/v1.0.1', 'refs/tags/v1.0.2', 'refs/tags/v1.0.3', 'refs/tags/v1.1.0' ]

@@ -46,0 +48,0 @@ ```

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