HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
scravy
node-macaddress
JavaScript2018–2018
scravy / node-macaddress

node-macaddress

Get the MAC addresses (hardware addresses) of the hosts network interfaces.

2Distinct people
3Mentions
0Explicit recommenders
145GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Get the MAC addresses (hardware addresses) of the hosts network interfaces.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 2:04:58 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2018-06-11 13:10:35 UTC to 2018-06-11 14:48:54 UTC.

0122018-06-11 13:00:00 UTC to 2018-06-11 14:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 11, 13:002018-06-11 14:00:00 UTC to 2018-06-11 15:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJun 11, 14:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 11, 13:002018-06-11 13:00:00 UTC2018-06-11 14:00:00 UTC101
Jun 11, 14:002018-06-11 14:00:00 UTC2018-06-11 15:00:00 UTC202

What Hacker News says

3 sources
I think the Windows code may be broken as well though for entirely different reason. It doesn't handle overlapping names of network interfaces. It searches for the first occurrence of the text of iface[1] in the output and then returns the next macaddress-ish text it finds. That means "Local Area Connection" will also match "Local Area Connection 2", "Local Area Connection 3", etc and the sort order of the ipconfig command will determine which one you will return. [1]: https://github.com/scravy/node-macaddress/blob/dd079620d11c9...
In Critical vulnerability of NPM package macaddress
Here's the offending line of code[1]: exec("cat /sys/class/net/" + iface + "/address", function (err, out) { That's some serious amateur hour and may even be a new contender for the Useless Use of Cat (and "exec(...)") Award. Would be simpler and less error prone to just read the file via fs.readFile(...) after verifying that the iface parameter does not contain a directory separator. [1]: https://github.com/scravy/node-macaddress/blob/dd079620d11c9...
In Critical vulnerability of NPM package macaddress

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.