Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

networkinterface-compare

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

networkinterface-compare

Comparison function for network interface names

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

networkinterface-compare

Build Status

networkinterface-compare is a comparison function for network interface names.

Using applications where network interface names are sorted like this can be undesirable:

  • Ethernet1/1
  • Ethernet1/10
  • Ethernet1/19
  • Ethernet1/2

A more pleasant experience is to see network interface names sorted like this:

  • Ethernet1/1
  • Ethernet1/2
  • Ethernet1/10
  • Ethernet1/19

This function helps you make that happen, check out the tests for more specific examples. Throw this function into an Array.prototype.sort, and have fun.

Keywords

compare

FAQs

Package last updated on 22 Jul 2015

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