feathers-config

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i feathers-config

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tsabolov