Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

hail2u/node-pit-ro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pit RO

Read-only pit for Node.js.

INSTALLATION

$ npm install pit-ro

QUICK USAGE

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');

LIMITATION

READ ONLY.

LICENSE

MIT: http://hail2u.mit-license.org/2013

About

Read-only pit for Node.js.

Resources

Stars

Watchers

Forks

Packages

No packages published