config-ext
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

config-ext

helpful extension methods for config

this is a work in progress

api

getOrElse<T>(config: IConfig, path: string, fallback: T): string | T

safely access a configuration path and provide a fallback value if not defined

assert(config: IConfig, path: string, message?: string): void

throws if configuration path does not exist

Readme

Keywords

none

Package Sidebar

Install

npm i config-ext

Weekly Downloads

15

Version

1.0.2

License

ISC

Last publish

Collaborators

  • suarasaur