@vacantthinker/read_env_file

1.0.0 • Public • Published

how to use ?

env.sh

BITBUCKET_USERNAME="abcdefg"
BITBUCKET_APP_PASSWORD="abcdefg1234567"

usage

let {BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD} 
    = require('@vacantthinker/read_env_file').readEnvFile('env.sh');

output

{
  BITBUCKET_USERNAME: 'abcdefg',
  BITBUCKET_APP_PASSWORD: 'abcdefg1234567'
}

works

readEnvFile()

/**
 * read env file , eg: env.sh xxx.env
 * 
 * @param filename path env file
 * @param logObj default: false
 * @returns {{}}
 */
function readEnvFile(filename, logObj = false) {}

how to install ?

npm install @vacantthinker/read_env_file -D

Readme

Keywords

none

Package Sidebar

Install

npm i @vacantthinker/read_env_file

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.26 kB

Total Files

4

Last publish

Collaborators

  • vacantthinker