Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

dotenv-exec

1.1.0 • Public • Published

dotenv-exec

This package provides dotenv command to run commands with dotenv.

Install

$ npm install dotenv-exec

Usage

Create a .env like

FOO=BAR

and run dotenv command like

$ dotenv node -e "console.log(process.env.FOO)"
BAR

Also you can specify a path to a configuration file with -f option like

$ dotenv -f /path/to/env node -e "console.log(process.env.FOO)"

Keywords

none

install

npm i dotenv-exec

Downloadsweekly downloads

1

version

1.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar