assert-env

Assert that specific environment variables exist.

Usage no npm install needed!

<script type="module">
  import assertEnv from 'https://cdn.skypack.dev/assert-env';
</script>

README

assert-env

Build Status NPM version NPM downloads LICENSE

Assert that specific environment variables exist.

$ npm install assert-env

API

When one or more keys are missing, a ReferenceError is thrown.

require('assert-env')([
  'HTTP_LISTEN_PORT',
  'HTTP_LISTEN_HOST'
]);

Complements

Alternatives

License

MIT