Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mikecann/js-env-run
- Owner: mikecann
- License: mit
- Created: 2019-03-14T00:51:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T02:23:42.000Z (over 5 years ago)
- Last Synced: 2024-05-01T18:01:04.084Z (6 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`