Skip to content

Commit

Permalink
App defaults in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
noamokman committed Sep 25, 2015
1 parent 900e027 commit 55acfd2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ var nachosConfig = require('nachos-config');

See [settings-file](https://github.com/nachos/settings-file) documentation to see list of available functions

## Extra functions
Nachos config has extra functions on top of the SettingsFile functions

### App defaults
```js
nachosConfig.getDefaultApp('txt')
.then(function (command) {
// command => /var/bin/gedit.desktop
});

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

## Run Tests
``` bash
$ npm test
Expand Down

0 comments on commit 55acfd2

Please sign in to comment.