Node module which reads the mac address of a given network interface name.
C++ JavaScript Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src
test
tools
.appveyor.yml
.gitignore
.npmignore
.travis.yml
LICENSE-MIT
Makefile
README.md
binding.gyp
package.json

README.md

netif

Node library which uses native calls to locate the mac address for a given interface name.

Currently works on OSX, Solaris, Linux and Windows. Maybe FreeBSD is next?

Build Status Build status

Getting Started

Install the module with: npm install netif

var netif = require('netif');
netif.getMacAddress('eth0'); // '00:0C:00:00:00:00'

License

Copyright (c) 2012 Mark Wolfe
Licensed under the MIT license.