{"id":19092982,"url":"https://github.com/foxt/mac-oui","last_synced_at":"2026-01-05T03:49:29.759Z","repository":{"id":241168395,"uuid":"804527513","full_name":"foxt/mac-oui","owner":"foxt","description":"Small library to parse a MAC address and retrieve data from the IEEE OUI DB.","archived":false,"fork":false,"pushed_at":"2024-05-22T19:06:59.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T15:01:57.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/oui-mac/v/1.0.0-readme3","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T18:55:00.000Z","updated_at":"2024-05-28T14:55:49.000Z","dependencies_parsed_at":"2024-05-22T20:09:45.032Z","dependency_job_id":null,"html_url":"https://github.com/foxt/mac-oui","commit_stats":null,"previous_names":["foxt/mac-oui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Fmac-oui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Fmac-oui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Fmac-oui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Fmac-oui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxt","download_url":"https://codeload.github.com/foxt/mac-oui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048425,"owners_count":20552509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:22:58.143Z","updated_at":"2026-01-05T03:49:29.721Z","avatar_url":"https://github.com/foxt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```js\nconst MAC = require(\"oui-mac\");\nconst fs = require(\"fs\");\n```\nor\n```ts\nimport * as MAC from \"oui-mac\";\nimport * as fs from \"fs\";\n```\nthen\n```js\n// Download it from https://standards-oui.ieee.org/oui/oui.txt\nconst ouitxt = fs.readFileSync(\"oui.txt\", \"utf8\");\nconst OUIDb = MAC.OUIDb(ouitxt);\nconsole.log(\"Read\", OUIDb.size, \"OUIs from the database\");\n\nfunction printMac(mac) {\n    console.log(`${mac}:`);\n    let parsed = MAC.parse(mac);\n    console.log(`  - Normalised: ${MAC.toString(parsed)}`);\n    console.log(`  - OUI: ${MAC.getOui(parsed)}`);\n    console.log(`  - Multicast: ${MAC.getMulticast(parsed)}`);\n    console.log(`  - LAA: ${MAC.getLAA(parsed)}`);\n    console.log(`  - Docker: ${MAC.isDocker(parsed) ? \"Likely\" : \"Unlikely\"} (converted to IP: ${MAC.dockerIP(parsed)})`);\n    let vendor = MAC.getVendor(parsed, OUIDb);\n    if (vendor) {\n        console.log(`  - Vendor: ${vendor.name}`);\n        console.log(`            ${vendor.address}`);\n        console.log(`            ${vendor.region}`);\n        console.log(`            ${vendor.country}`);\n    }\n}\nprintMac(\"bc:24:11:cf:9a:4b\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Fmac-oui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxt%2Fmac-oui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Fmac-oui/lists"}