File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ appConfig.load(function (err, config) {
17
17
console.log('config loaded: %j', config);
18
18
19
19
appConfig.on('changed', function (item) {
20
- console.log('key % changed', item.key);
20
+ console.log('key %s changed', item.key);
21
21
});
22
22
});
23
23
```
@@ -28,8 +28,8 @@ passed as an object to constructor
28
28
* jsonKeys: set to ` true ` if configuration values saved as JSON in etcd. Defaults to false (optional)
29
29
30
30
## Methods
31
- * identify(applicatioName ): identifies where to find the etcd keys for config using tree pattern /applications/{applicationName}
32
- * load(callback): callback called when config parsed from etcd. callback signature is ` function(err, config) `
31
+ * identify(applicationName ): identifies where to find the etcd keys for config using tree pattern /applications/{applicationName}
32
+ * load(callback): callback called when config parsed from etcd. Callback signature is ` function(err, config) `
33
33
34
34
## Events
35
35
* 'changed': fired on changes to etcd keys, returning a ` changed ` object
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " etcd-config" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " Load and watch config out of etcd" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments