osx-defaults
Version:
Access to OS X defaults program via simple API.
23 lines (18 loc) • 563 B
JavaScript
;
const defaults = require('../');
console.log('------------------ Read Async ------------------');
defaults.read({
isGlobalDomain: true,
key: 'AppleAquaColorVariant'
}, function(error, value) {
if (error !== null) throw error;
console.log('AppleAquaColorVariant', value);
});
defaults.read({
isGlobalDomain: true,
key: 'AppleInterfaceStyle'
}, function(error, value) {
if (error !== null) throw error;
console.log('AppleInterfaceStyle', value);
});
console.log('------------------ Read Async ------------------');