Read-only pit for Node.js.
$ npm install pit-ro
Load foo
section from ~/.pit/default.yaml
:
var pit = require('pit-ro');
var config = pit.get('foo');
Load bar
section from ~/.pit/another.yaml
:
var pit = require('pit-ro');
var config = pit.get('foo', 'another');
Load buz
section from config.yaml
in the current directory:
var pit = require('pit-ro');
pit.pitDir = './';
var config = pit.get('buz', 'config');
READ ONLY.