Socket
Socket
Sign inDemoInstall

flconf

Package Overview
Dependencies
13
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

lib/ms.js

1

index.js

@@ -36,2 +36,3 @@ // Copyright 2016 Yahoo Inc.

Config.prototype.env = require('./lib/env');
Config.prototype.ms = require('./lib/ms');

@@ -38,0 +39,0 @@ /**

5

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc