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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    3
  • 0.1.0
    0

Package Sidebar

Install

npm i bwm-ng

Weekly Downloads

3

Version

0.1.1

License

Apache License 2

Last publish

Collaborators

  • patricke94