@willsoto/node-konfig-consul
v6.0.0
Published
Node Konfig integration for Consul
Maintainers
Readme
Node Konfig Consul
Thanks to Konfig for the inspiration. This library would not have been possible without it.
Documentation is available at https://willsoto.github.io/node-konfig/
Installation
npm install @willsoto/node-konfig-consulyarn add @willsoto/node-konfig-consulbun add @willsoto/node-konfig-consulQuick look
import * as Konfig from "@willsoto/node-konfig-core";
import { ConsulLoader } from "@willsoto/node-konfig-consul";
const loader = new ConsulLoader({
keys: [
{
key: "database",
parser: new Konfig.JSONParser(),
},
{
key: "appName",
},
],
});