diff --git a/README.md b/README.md index ae3a5fd..ebe1bd9 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ -# µRequest - Minimalist HTTP client +# request-lite - A lightweight drop-in replacement for request -A lightweight alternative to (and drop-in replacement for) request. +A zero-dependency alternative to request for 90% of the use cases with only 10% of the code. Written from scratch. ## Super simple to use -µRequest is designed to be a drop-in replacement for request. It supports HTTPS and follows redirects by default. +request-lite is designed to be a drop-in replacement for request. It supports HTTPS and follows redirects by default. ```bash -npm install --save @coolaj86/urequest +npm install --save request-lite ``` ```js -var request = require('@coolaj86/urequest'); +var request = require('request-lite'); 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 @@ -121,10 +121,10 @@ These HTTP method convenience functions act just like `request()` but with a def There are at least two ways to debug the operation of `request`: -1. Launch the node process like `NODE_DEBUG=urequest node script.js` +1. Launch the node process like `NODE_DEBUG=request-lite node script.js` (`lib,request,otherlib` works too). -2. Set `require('@coolaj86/urequest').debug = true` at any time (this does the same thing +2. Set `require('request-lite').debug = true` at any time (this does the same thing as #1).