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

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

Build:
Build:
LAST BUILD BRANCH: v2.1.0
DEFAULT BRANCH: master
Ran 07 May 2018 08:16PM UTC
Jobs 4
Files 1
Run time 18s
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

pending completion
61

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%)

23 of 23 new or added lines in 1 file covered. (100.0%)

233 of 237 relevant lines covered (98.31%)

45.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
100.0
index.js
Jobs
ID Job ID Ran Files Coverage
1 61.1 07 May 2018 08:16PM UTC 0
98.31
Travis Job 61.1
2 61.2 07 May 2018 08:16PM UTC 0
98.31
Travis Job 61.2
3 61.3 07 May 2018 08:16PM UTC 0
98.31
Travis Job 61.3
4 61.4 07 May 2018 08:16PM UTC 0
98.31
Travis Job 61.4
Source Files on build 61
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #61
  • d6d4437d on github
  • Prev Build on add-underscore-nesting (#59)
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