node package manager

yep

A simple HTTP client for node

yep

A simple HTTP client for node.

npm install yep
yep({ url: 'http://example.com' })
  .then(res => console.log(res.body))
 
yep.stream({ url: 'http://example.com' })
  .then(res => res.pipe(fs.createWriteStream('index.html')))
  • yep(options)
  • yep.stream(options)

where options has the following keys:

  • url
  • method
  • headers
  • form
  • json
  • proxy

MIT