1.0.1 • Published 10 years ago

my-http v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

my-http

Provides helper functions for mundane http/https tasks.

var http = require('my-http')

// saves "all.json" to current working directory
http.download('http://nodejs.org/api/all.json')

// saves "all-2015.json" to current working directory
http.download('http://nodejs.org/api/all.json', 'all-2015.json')

http.readText('http://nodejs.org/api/all.json', function (text, url) {
  console.log(url + ' = ' + text.length)
})