curl-size

1.0.2 • Public • Published

curl-size NPM version NPM downloads Build Status

Use curl to get remote file size.

Install

$ npm install -g curl-size

Usage

$ curl-size $URL
 
# Example, reponse with a Content-Length header 
$ curl-size http://downloadap1.teamviewer.com/download/TeamViewer.dmg
26 MB
 
# No Content-Length header 
$ curl-size https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js
Be patient, downloading the file...
875 KB

License

MIT © EGOIST

Readme

Keywords

Package Sidebar

Install

npm i curl-size

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kchan