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-consul
yarn add @willsoto/node-konfig-consul
pnpm add @willsoto/node-konfig-consul
Quick 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",
},
],
});