Socket
Book a DemoInstallSign in
Socket

toml-to-env

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toml-to-env

give me a toml configuration file, I'll give you export FOO=bar

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

toml

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts