@jepz20/conman
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "@jepz20/conman", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Configuration manager that supports ttl and plugabble sources", | ||
@@ -17,3 +17,3 @@ "main": "./src/conman", | ||
}, | ||
"gitHead": "86f055464765681dd538c96d5bf15e804c511571", | ||
"gitHead": "571cb790935632aa5224a7fe2966e79200e335c9", | ||
"lint-staged": { | ||
@@ -20,0 +20,0 @@ "src/**/*.*": [ |
@@ -14,3 +14,3 @@ # CONMAN | ||
// Require conman | ||
const conman = require('@jepz20/conman'); | ||
const Conman = require('@jepz20/conman'); | ||
@@ -25,3 +25,4 @@ // Require the sources you will need in your config | ||
conman({ ttl: 1000 * 60 * 15 }) // initialize conman with your options | ||
const conman = Conman({ ttl: 1000 * 60 * 15 }) // Create a new instance and initialize conman with your options | ||
conman | ||
.addSource(s3Source) // add all the sources you need by priority | ||
@@ -191,2 +192,4 @@ .addSource(memorySource) // if a key exists in s3Source and memorySource, memorySource will take precedence | ||
## Integrating Conman with ExpressJS | ||
## Creating your own source | ||
@@ -193,0 +196,0 @@ |
266559
219