npmconf

If you are interested in interacting with the config settings that npm
uses, then use this module.

However, if you are writing a new Node.js program, and want
configuration functionality similar to what npm has, but for your
own thing, then I'd recommend using rc,
which is probably what you want.

If I were to do it all over again, that's what I'd do for npm. But,
alas, there are many systems depending on many of the particulars of
npm's configuration setup, so it's not worth the cost of changing.