validate-env
validate-env copied to clipboard
Version with sync API
A synchronous version of the check would simplify the API and allow you to just drop in the function in your index.ts, without messing with the current promise-based implementation. It would automatically throw and stop the process if there's a problem. Error message should include all failed .env vars with expected type.
Requested by reddit user /u/sshaw_