YAML configuration for NodeJS
This package depends on Node.js.
$ npm install cfg-yaml
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
});
This software is under the MIT license. See the complete license in:
LICENSE