• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tizzo / yaml-config-loader / 62 / 4
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 07 May 2018 08:17PM UTC
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 May 2018 08:15PM UTC coverage: 98.312% (-1.7%) from 100.0%
62.4

Pull #1

travis-ci

web-flow
Support automatically nested configs in env vars

Configuration files are often structured but this module aims to make it
easy to override config files from environment variables (which do not
support structure or event dot notation in key names. This addittion
provides a magic parameter that, if specified, allows you to dynamically
generate a key mapping for any key that has two `_` characters appearing
in a row.

If you are importing configuration from environment variables you can either
perform key re-mapping as listed in the next section or you can use double
underscores to specify hierarchy (i.e. `FOO__BAR`) by using the `underscoreNesti
g` option.

This means you could remap something like:

``` json
{
  "serverConfig": {
    "port": 9999,
    "host": "localhost"
  }
}
```

Like so:

``` bash
SERVER_CONFIG__PORT=9999
SERVER_CONFIG__HOST=localhost
```
Pull Request #1: Support automatically nested configs in env vars

83 of 93 branches covered (89.25%)

233 of 237 relevant lines covered (98.31%)

11.37 hits per line

Source Files on job 62.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 62
  • Travis Job 62.4
  • b9bb7be4 on github
  • Prev Job for on master (#57.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc