Socket
Book a DemoInstallSign in
Socket

run.env

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

run.env

Execute commands with .env file

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
405
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Pass in the path to your .env-file using the -p flag:

$ run.env -p my/path/env-file node my-node-app.js

License

MIT

Keywords

run

FAQs

Package last updated on 09 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts