0.2.0 • Published 1 year ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.0.0

3 years ago