0.1.1 • Published 7 years ago

cfg-yaml v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

cfg-yaml

YAML configuration for NodeJS

Install

This package depends on Node.js.

$ npm install cfg-yaml

Usage

config.yml:

hello:
    cfg:
        yaml: 'hello cfg-yaml'
var cfgYaml = require('cfg-yaml');

cfgYaml('config.yml', function (err, cfg) {
    cfg.has('hello.cfg.yaml'); // true
    cfg.get('hello.cfg.yaml'); // 'hello cfg-yaml'

    cfg.has('yaml.cfg.hello'); // false
    cfg.get('yaml.cfg.hello'); // undefined
});

License

This software is under the MIT license. See the complete license in:

LICENSE