2.4.2 • Published 6 years ago

pro-request v2.4.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

pro-request

Wraps the Request library with a light weight ES6 promise.

Parameters

  • url: the url
  • parameters: 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 test and maintain 100% coverage
  • npm run lint and maintain 0 errors (uses AirBnB JavaScript Style Guide)
2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

7 years ago

2.4.0-with-proxy

7 years ago

2.3.0

7 years ago

2.2.4

7 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago