lorenwest/node-config — pull request #31 by nsabovic (2012-09-25 18:32:08+00:00)
Title: Put optional deps under optionalDeps, test deps under devDeps.

From https://npmjs.org/doc/json.html:

devDependencies
-------------------------
If someone is planning on downloading and using your module in their program, then they probably don't want or need to download and build the external test or documentation framework that you use.

In this case, it's best to list these additional items in a devDependencies hash.

These things will be installed whenever the --dev configuration flag is set. This flag is set automatically when doing npm link, and can be managed like any other npm configuration param. See config(1) for more on the topic.

optionalDependencies
-------------------------------
If a dependency can be used, but you would like npm to proceed if it cannot be found or fails to install, then you may put it in the optionalDependencies hash. This is a map of package name to version or url, just like the dependencies hash. The difference is that failure is tolerated.

It is still your program's responsibility to handle the lack of the dependency.