mozilla-b2g/npm-mirror — pull request #26 by hathawsh (2014-12-19 08:55:06+00:00)
Title: Simple patch to mirror more package metadata, such as "main".

Currently, npm-mirror doesn't mirror enough package metadata for newer modules. For example, the "clone" module has no index.js and relies on the "main" attribute to help Node load the right file. Without that metadata, installation from a mirror fails in ugly, hard-to-debug ways. This patch makes npm-mirror copy the rest of the package metadata into the mirror.