validate-env icon indicating copy to clipboard operation
validate-env copied to clipboard

Version with sync API

Open efstajas opened this issue 4 years ago • 0 comments

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_

efstajas avatar May 03 '20 21:05 efstajas