README
assert-env
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'
]);
Assert that specific environment variables exist.
<script type="module">
import assertEnv from 'https://cdn.skypack.dev/assert-env';
</script>
Assert that specific environment variables exist.
$ npm install assert-env
When one or more keys are missing, a ReferenceError is thrown.
require('assert-env')([
'HTTP_LISTEN_PORT',
'HTTP_LISTEN_HOST'
]);