🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@waeco/dbus-network-manager

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waeco/dbus-network-manager

Interface to NetworkManager DBUS interface

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

dbus-network-manager

A node.js API to interact with NetworkManager via DBus. This is currently extremely new and incomplete.

Here are a few example snippets. We could use some more documentation.

const nm = await require('dbus-network-manager').connect();

nm.on('DeviceAdded', dev => console.log("Device Added:", dev));
nm.on('DeviceRemoved', dev => console.log("Device Removed:", dev));

let dev = await nm.GetDeviceByIpIface('wlp4s0');
let stats = await dev.Statistics;
stats.on('PropertiesChanged', console.log);
console.log(await stats.getProperties());
stats.setProperty('RefreshRateMs', 100);

let settings = await nm.Settings.connect();
console.log(await settings.ListConnections());
settings.on('PropertiesChanged', console.log);

let connections = await settings.ListConnections();
console.log(await connections[0].GetSettings());

FAQs

Package last updated on 18 Sep 2020

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