1.0.2 • Published 7 years ago

config-ext v1.0.2

Weekly downloads
10
License
ISC
Repository
github
Last release
7 years ago

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

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago