node-bwm-ng
Node module to read network interface speeds from bwm-ng.
Requirements
You do need bwm-ng install and in the path, obviously.
Usage
var bwm = require('bwm-ng');
bwm.check(function(interface, bytesPerSecDown, bytesPerSecUp){
}, ["eth0", "eth1"]);
The last interface parameter is optional. It defaults to every interface except loopback.
To exclude interfaces and select all others, use % before interface name.
For example:
var bwm = require('bwm-ng');
bwm.check(function(interface, bytesPerSecDown, bytesPerSecUp){
}, ["%eth0"]);
Help out
Please, do fork or create a pull request to enhance this module!