New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

dbus-network-manager

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbus-network-manager

Interface to NetworkManager DBUS interface

0.1.3
latest
75

Supply Chain Security

100

Vulnerability

75

Quality

78

Maintenance

100

License

Version published
Weekly downloads
12
300%
Maintainers
3
Weekly downloads
 
Created

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. They need work, they're just some random bits and bobs I've been using to test with as I build this (on a Node 6.x system).

require('./cjs/index.js').connect().then(x => nm=x);

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

nm.Device.connect('/org/freedesktop/NetworkManager/Devices/0').then(x => dev=x);
dev.Statistics.then(x => stats=x);
stats.getProperties().then(console.log)
stats.on('PropertiesChanged', console.log);
stats.setProperty('RefreshRateMs', 100);

nm.Settings.connect().then(x => settings=x);
settings.ListConnections().then(console.log)
settings.on('PropertiesChanged', console.log);

nm.Connection.connect('/org/freedesktop/NetworkManager/Settings/0').then(x => conn=x);
conn.GetSettings().then(console.log)

FAQs

Package last updated on 07 Sep 2017

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