Skip to content

mikecann/js-env-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <some command>

it will then execute <some command> using the environment variables that were exported from env.js

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published