npm.io
1.1.1 • Published 5 years ago

node-xfconf-query

Licence
Apache-2.0
Version
1.1.1
Deps
0
Size
61 kB
Vulns
0
Weekly
0
Stars
2

node-xfconf-query

npm NPM version License GitHub issues GitHub forks GitHub stars GitHub top language

Patreon

xfconf-query wrapper for nodejs

Install

npm install node-xfconf-query

Import package to the project

TypeScript
import XFConfQuery from "node-xfconf-query";
JavaScript
var XFConfQuery = require("node-xfconf-query");

Usage

List Channels
const channels = XFConfQuery.listChannels();
List Channel Properties
const properties = XFConfQuery.listProperties('xfce4-power-manager');
Read Property Value
const dpmsEnabled = XFConfQuery.readProperty('xfce4-power-manager', '/xfce4-power-manager/blank-on-ac');
Write Property Value
const result = XFConfQuery.writeProperty('xfce4-power-manager', '/xfce4-power-manager/dpms-enabled', false);
XFConfQuery.writeProperty('xfce4-power-manager', '/xfce4-power-manager/blank-on-ac', 0);

Rights and Agreements

License Apache-2.0

Copyright 2020 Andrea Macchieraldo