Code Monkey home page Code Monkey logo

Comments (7)

enormouspenguin avatar enormouspenguin commented on August 21, 2024

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.

enormouspenguin avatar enormouspenguin commented on August 21, 2024

Is there anyone here? Hello, do you hear me? Or maybe my problem is too small or too naive to solve?

from config-chain.

dominictarr avatar dominictarr commented on August 21, 2024

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.

enormouspenguin avatar enormouspenguin commented on August 21, 2024

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.

dominictarr avatar dominictarr commented on August 21, 2024

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.

enormouspenguin avatar enormouspenguin commented on August 21, 2024

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.

dominictarr avatar dominictarr commented on August 21, 2024

Okay, thanks. Fair enough.

from config-chain.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.