0.2.0 • Published 4 months ago

bash-export-to-process-env v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

bash-export-to-process-env

Retrieves all the new env variables and their values from sourcing a bash script.

Install

npm i -D bash-export-to-process-env

Usage

import {getNewEnvFromScript} from 'bash-export-to-process-env';

async function getBashScriptEnv() {
    const newEnv = await getNewEnvFromScript('path-to-bash-script.sh');
}

Other scripts besides just bash should work too, as long as they also work in bash.

0.1.0

4 months ago

0.2.0

4 months ago

0.1.1

4 months ago

0.0.0

2 years ago