flconf
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -36,2 +36,3 @@ // Copyright 2016 Yahoo Inc. | ||
Config.prototype.env = require('./lib/env'); | ||
Config.prototype.ms = require('./lib/ms'); | ||
@@ -38,0 +39,0 @@ /** |
{ | ||
"name": "flconf", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Simple, pluggable, hierarchical configs", | ||
@@ -35,4 +35,5 @@ "main": "index.js", | ||
"glob": "~7.0.3", | ||
"minimatch": "~3.0.0" | ||
"minimatch": "~3.0.0", | ||
"ms": "^2.0.0" | ||
} | ||
} |
@@ -87,2 +87,24 @@ # flconf | ||
### config.ms | ||
``` js | ||
config.use(config.ms); | ||
``` | ||
Replaces ms-style time strings with their value in milliseconds. | ||
``` json | ||
{ | ||
"maxAge": "1 day" | ||
} | ||
``` | ||
Will load as: | ||
``` json | ||
{ | ||
"maxAge": 86400000 | ||
} | ||
``` | ||
## license | ||
@@ -89,0 +111,0 @@ |
8247
6
161
115
4