5.0.0 • Published 2 years ago

@atana/initenv v5.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

initenv

simple npm package/cli tool that initializes environment variables for development purposes.

for node development: the package can be imported directly and the init method can be run.

for other development: this package can be used as a command line tool (e.g in python can use subprocess module)

npm package has zero dependencies so it can easily be added into any existing projects without introducing extra deps.

example usage

Node lib usage

const isProd = process.env.NODE_ENV === 'production';
// function is blocking so you can call it with the rest of your imports
require('@atana/initenv').init(isProd);
// verify
console.log(process.env.PGHOST);

CLI usage

bootstrap the environment variables into your current shell:

$(initenv --script) #  generates script wiith variable exports inline and executes it
# test an environment variable in your shell
echo $PGHOST
5.0.0

2 years ago

4.4.0

3 years ago

4.3.0

3 years ago

4.1.0

3 years ago

4.0.3

3 years ago

4.2.0

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago