1.0.2 • Published 7 years ago

network-manager v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

This package only work for Linux having network-manager cli. This is intended for working with ethernet and wifi interfaces hence method which return other interfaces are filtered out.

Get Devices List

The following command gives the list of Ethernet and wifi interfaces along with status data.

var manager = require('network-manager');
var out = manager.getDevices();
[ { toString: [Function],
    type: 'ethernet',
    device: 'enp2s0',
    state: 'connected',
    connection: 'Ethernet' },
  { toString: [Function],
    type: 'wifi',
    device: 'wlp3s0b1',
    state: 'connected',
    connection: 'Renjith P' } ]
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago