A lightweight, zero-dependency drop-in replacement for request.js
Go to file
AJ ONeal 956c16e48c initial commit 2018-06-18 19:39:19 -06:00
examples initial commit 2018-06-18 19:39:19 -06:00
LICENSE initial commit 2018-06-18 19:39:19 -06:00
README.md initial commit 2018-06-18 19:39:19 -06:00
index.js initial commit 2018-06-18 19:39:19 -06:00
package.json initial commit 2018-06-18 19:39:19 -06:00

README.md

µRequest - Minimalist HTTP client

A minimal drop-in replacement for request with 0 dependenciese.

Super simple to use

µRequest is designed to be a minimal drop-in replacement for request.

var request = require('urequest');
request('http://www.google.com', function (error, response, body) {
  console.log('error:', error); // Print the error if one occurred
  console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
  console.log('body:', body); // Print the HTML for the Google homepage.
});