cravler / cfg-yaml

YAML configuration for NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

YAML configuration for NodeJS

License:MIT License


Languages

Language:JavaScript 100.0%