# networkinterface-compare

> Comparison function for network interface names

Latest version **1.0.0** (published 2015-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install networkinterface-compare
pnpm add networkinterface-compare
yarn add networkinterface-compare
bun add networkinterface-compare
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-22 |
| First published | 2015-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ray Solomon |
| Maintainers | rsolomo |
| Keywords | compare, networkinterface |

## Links

- npm: https://www.npmjs.com/package/networkinterface-compare
- Repository: https://github.com/rsolomo/networkinterface-compare
- Homepage: https://github.com/rsolomo/networkinterface-compare#readme
- Issues: https://github.com/rsolomo/networkinterface-compare/issues
- npm.io page: https://npm.io/package/networkinterface-compare

## Recent versions

- 1.0.0 (latest) — 2015-07-22

## README

# networkinterface-compare

[![Build Status](https://travis-ci.org/rsolomo/networkinterface-compare.svg?branch=master)](https://travis-ci.org/rsolomo/networkinterface-compare)

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.

---
_Source: https://npm.io/package/networkinterface-compare · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
