nconf-yaml
Version:
YAML format plugin for nconf
40 lines (24 loc) • 1.13 kB
Markdown
# nconf-yaml
[](https://www.npmjs.com/package/nconf-yaml)[](https://www.npmjs.com/package/nconf-yaml)[](https://david-dm.org/tellnes/nconf-yaml)[](https://travis-ci.org/tellnes/nconf-yaml)[](https://gratipay.com/~tellnes/)
YAML format plugin for [nconf](https://www.npmjs.org/package/nconf)
## Usage
```js
var nconf = require('nconf')
nconf.file({
file: '/path/to/some/file.yaml',
format: require('nconf-yaml')
})
```
or to add general YAML file support
```js
var nconf = require('nconf')
nconf.formats.yaml = require('nconf-yaml')
// and then you can do
nconf.file({ file: '/path/to/some/file.yaml', format: nconf.formats.yaml })
```
## Install
```bash
npm install nconf nconf-yaml
```
## License
MIT