Comments (7)
By the way, I notice may be your test doesn't cover get() method at all. So sorry if I am wrong.
from config-chain.
Is there anyone here? Hello, do you hear me? Or maybe my problem is too small or too naive to solve?
from config-chain.
That error looks like a null or undefined got in somewhere,
it was here:
https://github.com/dominictarr/config-chain/blob/master/index.js#L143
I've added your example as a test, and fixed the problem. (in [email protected])
However, i recommend using http://npm.im/rc instead. rc does pretty much everything
you want in a configuration loader, and it does it one way, so you know that every
project that uses it does configuration the same exact way.
from config-chain.
Thanks so much for the fix and recommendation. But I still think config-chain is better because it allow me to customize things. rc may be just a little bit too tight for me. I even considered nconf too but it's global config and not be able to create many instances bother me somehow. But both of your modules are great anyway.
from config-chain.
thanks,
The whole point of rc is that it's not configurable.
Just out of curiosity, what are you doing with config-chain that you can't do with rc?
(and yes, agree, I wrote config-chain as a reaction to nconf's bloat)
from config-chain.
I though may be the addUrl() things that is missing. Actually, I haven't used up all the features of config-chain and rc can do every things that config-chain is doing for me now. But the stiffness and running around scanning things of rc make me feel kind of creepy. And also my strict project manager don't want that feeling anyway. We just want to keep our dependencies under our control as much as possible and every things don't goes outside the app root folder.
from config-chain.
Okay, thanks. Fair enough.
from config-chain.
Related Issues (14)
- The filename 'LICENCE' is mispelled. HOT 5
- Support deep extension HOT 9
- support loading config from javascript files. HOT 4
- Trouble with Node 0.11 HOT 3
- Version mismatch HOT 1
- Can I load nested options from environment variables HOT 3
- Published package should not include tests HOT 11
- transfer HOT 2
- Broken.json breaks flow typechecking HOT 1
- INI version used (1.3.0) has a vulnerability HOT 1
- CVE-2020-7788 HOT 2
- README update HOT 3
- Nested config objects HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from config-chain.