flaviocamilo / run.env

command line tool πŸƒ to execute applications with `.env` file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run.env

Run apps with .env file.

Command line tool to execute applications with .env file

The tool is based on dotenv library.

Installation

NPM version

$ npm install -g run.env

Usage

Create a .env file with environment variables for your application.

Sample .env file

DB_HOST=localhost
DB_USER=root
DB_PASS=dadada

Now, you can execute your app with run.env command. (No need to include dotenv in your code.)

$ run.env app arg1 arg2 ...

Your application will have the environment values from .env file.

Example

$ run.env node my-node-app.js

License

MIT

About

command line tool πŸƒ to execute applications with `.env` file

License:MIT License


Languages

Language:JavaScript 100.0%