Skip to content

Instantly share code, notes, and snippets.

@rjacoby
Created May 30, 2014 18:50
Show Gist options
  • Save rjacoby/45e692fc1732f24a7b22 to your computer and use it in GitHub Desktop.
Save rjacoby/45e692fc1732f24a7b22 to your computer and use it in GitHub Desktop.
➜ ~ curl https://registry.npmjs.org/-/all --silent --write-out "size_download=%{size_download}\n" --output /dev/null
size_download=39077657
➜ ~ curl https://registry.npmjs.org/-/all --silent -H "Accept-Encoding: gzip,deflate" --write-out "size_download=%{size_download}\n" --output /dev/null
size_download=39077698
➜ ~ curl https://registry.npmjs.org/-/all --silent --http1.0 -H "Accept-Encoding: gzip,deflate" --write-out "size_download=%{size_download}\n" --output /dev/null
size_download=39077996
➜ ~ ls -lh npm_all.json
-rw-r--r-- 1 rafij MAIN\Domain Users 37M May 30 13:49 npm_all.json
➜ ~ gzip npm_all.json
➜ ~ ls -lh npm_all.json.gz
-rw-r--r-- 1 rafij MAIN\Domain Users 7.3M May 30 13:49 npm_all.json.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment