component/package.js — pull request #9 by bergie (2014-04-30 17:07:06+00:00)
Title: Detect when download produced an empty file

If the remote provides a non-zero file size (via the `content-length` header), check the size of the created file at end of download, and throw error if we got an empty file.

This is made for detecting component/installer.js#12