githubEdit

request-promise-core

Promises/A+ logoarrow-up-right

request-promise-core

Gitterarrow-up-right Build Statusarrow-up-right Coverage Statusarrow-up-right Dependency Statusarrow-up-right Known Vulnerabilitiesarrow-up-right

This package is the core for the following packages:

request-promise-core contains the core logic to add Promise support to requestarrow-up-right.

Please use one of the libraries above. It is only recommended to use this library directly, if you have very specific requirements.

Installation for request@^2.34

This module is installed via npm:

npm install --save request
npm install --save request-promise-core

request is defined as a peer-dependency and thus has to be installed separately.

Usage for request@^2.34

Installation and Usage for request@next

Request Nextarrow-up-right is still in alpha. However, request-promise-core is already designed to be compatible and ships with a configuration helper – require('request-promise-core/configure/request-next') – that is used by request-promisearrow-up-right in its "next" branch.

Contributing

To set up your development environment:

  1. clone the repo to your desktop,

  2. in the shell cd to the main folder,

  3. hit npm install,

  4. hit npm install gulp -g if you haven't installed gulp globally yet, and

  5. run gulp dev. (Or run node ./node_modules/.bin/gulp dev if you don't want to install gulp globally.)

gulp dev watches all source files and if you save some changes it will lint the code and execute all tests. The test coverage report can be viewed from ./coverage/lcov-report/index.html.

If you want to debug a test you should use gulp test-without-coverage to run all tests without obscuring the code by the test coverage instrumentation.

Change History

License (ISC)

In case you never heard about the ISC licensearrow-up-right it is functionally equivalent to the MIT license.

See the LICENSE filearrow-up-right for details.

Last updated