request-promised
v1.0.2
Published
Promised wrapper for request
Downloads
24
Readme
Request-Promised
A promised wrapper for request
Installation
Install this module locally with the following command:
npm install request-promised
Save to dependencies or dev-dependencies:
npm install --save request-promised
npm install --save-dev request-promised
Usage
Example:
const request = require('request-promised');
request.get("http://www.example.com").then(response => {
expect(response.statusCode).toBe(200);
});
Tests
Run the tests with the following command:
npm test