1.0.10 • Published 8 months ago

@network-utils/vendor-lookup v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

vendor-lookup

Simple library with no dependencies to lookup the manufactuers from a network MAC address using an up-to-date database imported directly from IEEE registeries.

Installation

$ npm install @network-utils/vendor-lookup

Update the vendor database

$ npm run update

Usage

Example

import {toVendor} from '@network-utils/vendor-lookup'

const vendor = toVendor('04:a1:51:1b:12:92') // Returns 'NETGEAR'

toVendor(mac: string): string

Returns the IEEE registered vendor for the prefix of this MAC address or '' if the MAC address is a random MAC (often used by mobile devices for privacy) or '' if this prefix is associated with a vendor which choosed to keep their records private or '' of this prefix is not in IEEE database

isRandomMac(mac: string): boolean

Returns true if this MAC address is random

1.0.9

10 months ago

1.0.10

8 months ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0-4

4 years ago

1.0.0-3

4 years ago

1.0.0-2

4 years ago

1.0.0-1

4 years ago

1.0.0-0

4 years ago