bash-export-to-process-env
v0.2.0
Published
Retrieves all the new env variables and their values from sourcing a bash script.
Readme
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-envUsage
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.
