Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repository files navigation

oui-data

IEEE OUI database as JSON

Example

The module exports a JSON file. Depending on your environment you may need to use import attributes, import assertions or nothing at all.

Keys cover all three IEEE registries, MA-L with 6 hex chars, MA-M with 7 and MA-S with 9. MA-M and MA-S are subdivisions of MA-L prefixes assigned to IEEE Registration Authority, so match the longest prefix first:

import ouiData from "oui-data" with {type: "json"};

const mac = "C85CE27ABCDE";
console.log(ouiData[mac.substring(0, 9)] ?? ouiData[mac.substring(0, 7)] ?? ouiData[mac.substring(0, 6)]);
//=> SYNERGY SYSTEMS AND SOLUTIONS
//=> A1526, GREEN FIELDS COLONY
//=> Faridabad HARYANA 121001
//=> India

© silverwind, distributed under BSD licence

About

IEEE OUI database as JSON

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages