Skip to content

nachos/nachos-config

Repository files navigation

nachos-config

Nachos settings file for nachos

Linux OSX Windows Coverage Dependencies DevDependencies
Coverage Status

Have a problem? Come chat with us!

Join the chat at https://gitter.im/nachos/nachos-config

Installation

$ [sudo] npm install nachos-config --save

Examples

Nachos settings defines the defaults for nachos settings file

var nachosConfig = require('nachos-config');

See settings-file documentation to see list of available functions

Extra functions

Nachos config has extra functions on top of the SettingsFile functions

App defaults

nachosConfig.getDefaultApp('txt')
  .then(function (command) {
    // command => /var/bin/gedit.desktop
  });
  
nachosConfig.setDefaultApp('txt', '/var/bin/gedit.desktop')
  .then(function () {
    // saved successfully!
  });

Run Tests

$ npm test

License

MIT