bwm-ng

Node module to read network interface speeds from bwm-ng.

node-bwm-ng

Node module to read network interface speeds from bwm-ng.

You do need bwm-ng install and in the path, obviously.

    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"]);

Please, do fork or create a pull request to enhance this module!