Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikecann/js-env-run

Loads environment variables from a given ts file then executes the passed command
https://github.com/mikecann/js-env-run

Last synced: 18 days ago
JSON representation

Loads environment variables from a given ts file then executes the passed command

Awesome Lists containing this project

README

        

# JS ENV Run

It loads the environment object from the given `.js` file then executes the given command.

## Install

```
yarn add -D js-env-run
```

## Usage

create the file `./env.js` file in the root of your project

```
module.exports = {
HELLO: "foo",
WORLD: 123
};
```

then

```
yarn js-env-run
```

it will then execute `` using the environment variables that were exported from `env.js`