0.2.0 • Published 4 months ago
bash-export-to-process-env v0.2.0
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.