perfect.env
Drop-in replacement for process.env
that throws an Error
if an unset environment variable is accessed.
const perfect = const PORT CONSUMER_KEY CONSUMER_SECRET APP_URL = perfectenv
instead of
const PORT CONSUMER_KEY CONSUMER_SECRET APP_URL = processenv
Exception example:
Error: 'PORT' environment variable is not set. at Object.get at Object.<anonymous>
License
MIT © David da Silva