network-manager

1.0.2 • Public • Published

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' } ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    11
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i network-manager

Weekly Downloads

11

Version

1.0.2

License

ISC

Last publish

Collaborators

  • deeapkk87
  • deepakk87