@willsoto/node-konfig-http
v6.0.0
Published
Node Konfig integration for HTTP
Downloads
237
Maintainers
Readme
Node Konfig HTTP
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-httpyarn add @willsoto/node-konfig-httpbun add @willsoto/node-konfig-httpQuick look
import * as Konfig from "@willsoto/node-konfig-core";
import { HttpLoader } from "@willsoto/node-konfig-http";
const loader = new HttpLoader({
sources: [
{
url: "https://internal.config.com/config.json",
parser: new Konfig.JSONParser(),
},
],
});