Skip to content

Commit

Permalink
Add watch option to the readme (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodingyd authored and sindresorhus committed Nov 17, 2019
1 parent 6d7157c commit f88a646
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ console.log(store.get('foo.bar.foobar'));
//=> '🦄'
```

#### watch

Type: `boolean`<br>
Default: `false`

Watch for any changes in the config file and call the callback for `onDidChange` if set. This is useful if there are multiple processes changing the same config file.

**Currently this option doesn't work on Node.js 8 on macOS.**

### Instance

You can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a `key` to access nested properties.
Expand Down

0 comments on commit f88a646

Please sign in to comment.