isaacs/npm — pull request #2418 by Soares (2012-05-05 00:07:18+00:00)
Title: Made the location of dotfiles honor XDG_CONFIG_HOME

(And also XDG_CACHE_HOME)

The XDG specification allows users to specify configuration/data/cache locations so that their home directory need not be cluttered by a plethora of dotfiles (like `.npm` and `.npmrc`). npm should honor such settings.