Skip to content

Configuration manager for Yahoo configuration bundles.

License

Notifications You must be signed in to change notification settings

snyamathi/ycb-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modown-config

normalizes advanced config file features behind a simple interface

Goals & Design

  • provide a single API for reading different kinds of configuration files
  • hide advanced configuration file features (such as includes) behind a simple API

Installation

Install using npm:

$ ynpm install modown-config

Example

var ConfigHelper = require('modown-config');

var helper = new ConfigHelper();

// This is optional. It allows modown-config to prepare the configuration
// file for faster response.
helper.addConfig('foo', 'bar', 'application.json');

// The `read()` method is the heart of modown-config. It is what reads the
// configuration file for you. If the file is context-sensitive it'll apply
// the context.
var context = { device: 'iphone', region: 'US' };
var contextualizedConfig = helper.read('foo', 'bar', context);

License

This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.

Contribute

See the CONTRIBUTE.md file for info.

About

Configuration manager for Yahoo configuration bundles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%