Disclaimer: I'm relatively new to Node and not an experienced developer, so I'm really eager to get some feedback.At my org we recently made it a rule that your repos that rely on .env variables need to have a .env.template file so that new contributors know exactly what vars they need to find in order to run an application locally.I decided as a little side-project to write a quick utility that you can pass a path to such a template file to validate that all vars are present in process.env — and as a step further, I also added simple type-checking.Check it out: https://github.com/efstajas/validate-envPlease lemme know what you think!
Submitted May 03, 2020 at 06:58PM by efstajas
No comments:
Post a Comment