@alx13/dotenv-exec
v1.0.2
Published
Parse .env file with dotenv and exec app like exec(3) POSIX call with kexec.
Downloads
5
Readme
@alx13/dotenv-exec
Description
Parse .env file with dotenv
and exec app like exec(3) POSIX call with kexec
Installation
npm install --save-dev @alx13/dotenv-exec
Usage
Add to package.json
:
{
"scripts": {
"dev": "dotenv-exec -E .env -f -- ./app.js -f"
}
}
Don't forget to use --
to separate command flags from dotenv-exec
or npm
flags.
app.js [options] <cmd> <args>
Options:
--help Show help
--version Show version number
--encoding Encoding of .env file ["ascii", "base64", "binary", "hex", "latin1", "ucs2", "utf16le", "utf8"] [default: "utf8"]
--env, -E Location of .env file relative to current working directory [default: ".env"]
--force, -f Override setted env variables from .env file [default: false]
Contributors
- Alexander Ostapenko [email protected]
License
MIT