bwm-ng

0.1.1 • Public • Published

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!

/bwm-ng/

    Package Sidebar

    Install

    npm i bwm-ng

    Weekly Downloads

    9

    Version

    0.1.1

    License

    Apache License 2

    Last publish

    Collaborators

    • patricke94