Nachos settings file for nachos
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
$ [sudo] npm install nachos-config --save
Nachos settings defines the defaults for nachos settings file
var nachosConfig = require('nachos-config');
See settings-file documentation to see list of available functions
Nachos config has extra functions on top of the SettingsFile functions
nachosConfig.getDefaultApp('txt')
.then(function (command) {
// command => /var/bin/gedit.desktop
});
nachosConfig.setDefaultApp('txt', '/var/bin/gedit.desktop')
.then(function () {
// saved successfully!
});
$ npm test