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

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

Build:
Build:
LAST BUILD BRANCH: v2.1.0
DEFAULT BRANCH: master
Repo Added 05 Sep 2014 04:13AM UTC
Files 1
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

LAST BUILD ON BRANCH add-underscore-nesting
branch: add-underscore-nesting
CHANGE BRANCH
x
Reset
  • add-underscore-nesting
  • 0.0.10
  • 0.0.11
  • 0.0.4
  • 0.0.5
  • 0.0.6
  • 0.0.7
  • 0.0.8
  • 0.0.9
  • 1.0.0
  • 1.1.0
  • 1.1.1
  • 1.2.1
  • 1.2.2
  • 1.3.0
  • 2.0.0
  • 2.0.1
  • master
  • v2.1.0

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

Relevant lines Covered
Build:
Build:
237 RELEVANT LINES 233 COVERED LINES
45.49 HITS PER LINE
Source Files on add-underscore-nesting
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
61 add-underscore-nesting 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.... push 07 May 2018 08:16PM UTC tizzo travis-ci pending completion  
59 add-underscore-nesting 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.... push 07 May 2018 08:01PM UTC tizzo travis-ci pending completion  
See All Builds (58)
  • Repo on GitHub
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

© 2025 Coveralls, Inc