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

tizzo / yaml-config-loader / 61 / 1
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v2.1.0
DEFAULT BRANCH: master
Ran 07 May 2018 08:16PM 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% (+2.5%) from 95.781%
61.1

push

travis-ci

tizzo
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
```

83 of 93 branches covered (89.25%)

233 of 237 relevant lines covered (98.31%)

11.37 hits per line

Source Files on job 61.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 61
  • Travis Job 61.1
  • d6d4437d on github
  • Prev Job for on add-underscore-nesting (#59.2)
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