Hi there,
I really love convict, and find myself a little confused about a few matters when I read the documentation. I've written down my questions, and I'm not seeking answers here in this GitHub issue (although of course that would not be a problem). Rather, I'm hoping that documentation can be clarified permanently.
- When using config.set(), do validation rules get applied?
- Can multiple values be set by a single CLI argument, if they share the same arg-name or do arg-names have to be unique?
- Can multiple values be set by a single env-var if they share the same env-name or do env-names have to be unique?
- Do arg, environment variables and defaults all get passed through the format function?
- Do arg, environment variables and defaults all get passed through the coerce function?
- The doc on
config.getArgs() and config.getEnv() mention an options-argument to the convict function, but this is not reflected in the var config = convict(schema)-part of the readme.
Thank you!
Hi there,
I really love convict, and find myself a little confused about a few matters when I read the documentation. I've written down my questions, and I'm not seeking answers here in this GitHub issue (although of course that would not be a problem). Rather, I'm hoping that documentation can be clarified permanently.
config.getArgs()andconfig.getEnv()mention anoptions-argument to theconvictfunction, but this is not reflected in thevar config = convict(schema)-part of the readme.Thank you!