1.2.0 • Published 9 years ago

nachos-config v1.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

nachos-config

Nachos settings file for nachos

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