npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

toml-to-env

1.1.1

@bcoe

npmHomeRepoSnykSocket
Downloads:1
$ npm install toml-to-env
DailyWeeklyMonthlyYearly

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