/config-cats

For node (es6): Returns a default configuration pojo. Overrides keys with values taken from a json file if an environment variable points to such a file.

Primary LanguageTypeScriptMIT LicenseMIT

Typescript library for loading a configuration file, to be run in node. Built JS targets ES6.

  • Returns a default configuration pojo.
  • Overrides keys with values taken from a json file if an environment variable points to such a file.
  • Lets you specify the configuration interface type.
  • Can cache result.

See src/example.ts for usage. Run example with npm run example.