2.4.2 • Published 8 years ago
pro-request v2.4.2
pro-request
Wraps the Request library with a light weight ES6 promise.
Parameters
url: the urlparameters: the json object to send as parameters
Examples
import request from 'pro-request';
request.get('http://web-service/').then((res) => {
// handle
});
request.post('http://web-service/', {
headers: { 'Content-Type': 'application/json' },
json: { id: '1', title: 'thing to do', }
}).then((res) => {
// handle
});
request.delete('http://web-service/', {
headers: { 'Content-Type': 'application/json' },
json: { id: '1' }
}).then((res) => {
// handle
});Quality
- to contribute, fork, branch and submit pull requests for review
- use Node 6
- use ES 6
npm testand maintain 100% coveragenpm run lintand maintain 0 errors (uses AirBnB JavaScript Style Guide)
2.4.2
8 years ago
2.4.1
8 years ago
2.4.0
9 years ago
2.4.0-with-proxy-beta.1
9 years ago
2.4.0-with-proxy.4
9 years ago
2.4.0-with-proxy.3
9 years ago
2.3.0-with-proxy.3
9 years ago
2.4.0-with-proxy.2
9 years ago
2.4.0-with-proxy.1
9 years ago
2.4.0-with-proxy
9 years ago
2.3.0
9 years ago
2.2.4
9 years ago
2.2.3
10 years ago
2.2.2
10 years ago
2.2.1
10 years ago
2.2.0
10 years ago
2.2.0-test-release
10 years ago