/yamlverse

Read YAML configs with Universe

Primary LanguageJavaScript

YAMLverse brings together Universe, YAML.node and c-c-config to make application configuration a snap. Build Status

Usage is simple:

var yamlverse = require('yamlverse');

// Set some tags. Do this as early as possible.
yamlverse.tags = "development";

// Load a configuration file.
var dbConfig = yamlverse('database');
// Do something with dbConfig.

YAMLverse will look for files in the project's config directory. Files should have the .yml or .yaml extension. Tags are in the same format as expected by c-c-config.