dpd-dotenv

Read .env file and make the variables available to event scripts.

Usage no npm install needed!

<script type="module">
  import dpdDotenv from 'https://cdn.skypack.dev/dpd-dotenv';
</script>

README

dpd-dotenv

Read .env file and make the variables available to event scripts.

Installation

npm install dpd-dotenv --save

Usage

To get an environment variable, call ctx.env(VAR_NAME).

The method accepts a default value as the second parameter: ctx.env(VAR_NAME, 'some default value').

License

MIT