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

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

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

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

76 of 93 branches covered (81.72%)

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

227 of 237 relevant lines covered (95.78%)

42.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
100.0
index.js
Jobs
ID Job ID Ran Files Coverage
1 59.1 07 May 2018 08:01PM UTC 0
95.78
Travis Job 59.1
2 59.2 07 May 2018 08:01PM UTC 0
95.78
Travis Job 59.2
3 59.3 07 May 2018 08:01PM UTC 0
95.78
Travis Job 59.3
4 59.4 07 May 2018 08:01PM UTC 0
95.78
Travis Job 59.4
Source Files on build 59
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #59
  • 6364270d on github
  • Next Build on add-underscore-nesting (#61)
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