feathersjs-ecosystem / configuration

[MOVED] A plugin for configuring a Feathers application
https://github.com/feathersjs/feathers
MIT License
28 stars 15 forks source link

Docs are wrong #36

Closed KidkArolis closed 7 years ago

KidkArolis commented 7 years ago

Docs say:

require('feathers-configuration')()

I need to do

require('feathers-configuration')()()

I'd like to do

require('feathers-configuration')

just like in node-config.

ekryski commented 7 years ago

Hmm... require('feathers-configuration')() works for me. You still seeing this issue?

eddyystop commented 7 years ago

I had a custom node-config wrapper before feathers-configuration, and I really wanted to do just the require, like you.

The only way I found to do it was to module.exports a getter. But you can only do that in ES5. I doubt you can achomplish this in ES6.