1.1.1 • Published 7 years ago

toml-to-env v1.1.1

Weekly downloads
14
License
ISC
Repository
github
Last release
7 years ago

toml-to-env

provide a TOML configuration file with an environment stanza, and toml-to-env will output the appropriate export commands to configure an enviornment:

export METRICS='127.0.0.1'
export PORT=9200

Use toml-to-env in a shell script like so:

#!/usr/bin/env bash
eval $(toml-to-env /path/to/config.toml)

To unset an environment, do:

#!/usr/bin/env bash
eval $(toml-to-env unset /path/to/config.toml)

License

ISC

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago