Skip to content

Commit

Permalink
Merge pull request #9 from de-luca/update-readme
Browse files Browse the repository at this point in the history
Update README and bump version
  • Loading branch information
de-luca committed Sep 18, 2016
2 parents 1e96d3e + 888511d commit 0018b0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Returns `true` if the key exists, `false` otherwise.
### `config.set(key, value)`
Set a key with the specified value. If the key is already in use its value will be overwritten.

### `config.get(key)`
Returns the value associated with the key. If the key is not defined `undefined` is returned.
### `config.get(key[, defaultValue])`
Returns the value associated with the key. If the key is not defined `undefined` is returned.
You can specify a default value returned in case the key does not exists.

### `config.keys([key])`
If `key` is provided, returns an array containing all keys if the `key` object.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-json-config",
"version": "1.3.0",
"version": "1.4.0",
"description": "Simply set and get configuration from a json file for your Electron app",
"main": "src/index.js",
"keywords": [
Expand Down

0 comments on commit 0018b0d

Please sign in to comment.