wild-config
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -279,6 +279,2 @@ /* eslint no-console: 0, global-require: 0 */ | ||
process.on('SIGHUP', () => { | ||
setImmediate(loadConfig); | ||
}); | ||
loadConfig(true); |
{ | ||
"name": "wild-config", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Configuration management module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,2 @@ # wild-config | ||
- Additionally, command-line arguments can be used to override any existing config option | ||
- _wild-config_ detects SIGHUP and reloads configuration files automatically | ||
@@ -123,17 +122,2 @@ ## Loading order | ||
### Configuration reload | ||
_wild-config_ catches SIGHUP signal and reloads configuration files. Additionally, a 'reload' event is emitted. | ||
```javascript | ||
const config = require('wild-config'); | ||
config.on('reload', () => { | ||
console.log('New "server.enabled" value: %s', config.server.enabled); | ||
}); | ||
``` | ||
### Events | ||
- _'reload'_ emitted when SIGHUP is received, and configuration is reloaded | ||
### Limitations | ||
@@ -140,0 +124,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16287
282
129