JSON/YAML configs loader for feathers.js.
const config = require('feathers-config');
config.get('option');
config.get('nested.option');
Installation
$ npm install --save feathers-config
Features
- JS module as configs (module must return a plain object)
- JSON configs support
- YAML configs support (
js-yaml
is used to load) - Config override - latter loaded file will have precedence upon key search
Notes
When add source as a filename without extension we'll try to load first .js
, then .json
and then .yaml
(in that order).
Examples
- TODO