cfg-yaml
v0.1.1
Published
YAML configuration for NodeJS
Downloads
3
Readme
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