Socket
Socket
Sign inDemoInstall

networkinterface-compare

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    networkinterface-compare

Comparison function for network interface names


Version published
Maintainers
1
Install size
5.25 kB
Created

Readme

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

FAQs

Last updated on 22 Jul 2015

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc