@ascendcom/env-manager

.env example format PARAMETER=VALUE

Usage no npm install needed!

<script type="module">
  import ascendcomEnvManager from 'https://cdn.skypack.dev/@ascendcom/env-manager';
</script>

README

. clone this project to your pc/mac

. cd in to the project

. npm link

. go to the project you want to use it

. npm link ae-env-manager

. require('ae-env-manager') in your entry file (in electron is called renderer.js)

. create .env file with the same directory with renderer.js

. magic happens

.env example format PARAMETER=VALUE

in application env('PARAMETER', default_value) will return "VALUE"

to cache before build run node node_modules/ae-env-manager/cache or put it as a npm scripts