cfg-yaml

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i cfg-yaml

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • cravler