node-convict
node-convict copied to clipboard
"required" property should be a must-have
Agreed. It is rather odd to not be able to specify that "this property must be set from either a file or environment variable - no default is allowable".
I would love this feature.
Additionally, the currently suggested way of setting default: null and format: String properties means that typings infer the values as null | undefined. Thus your build will fail if using Typescript, though on runtime only .validate() will throw an error.