1.0.0 • Published 8 years ago

feathers-config v1.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 years ago

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

License

MIT