koola / request-promised

Promised wrapper for request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request-Promised

A promised wrapper for request

dependencies Status Build Status npm version

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

About

Promised wrapper for request

License:MIT License


Languages

Language:JavaScript 100.0%