New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

network-manager

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-manager

A wrapper for nm-cli for managing linux network connection

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

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

Keywords

linux

FAQs

Package last updated on 06 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts