@willsoto/node-konfig-consul
v4.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-consulpnpm 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",
},
],
});