Please refer to the
request-promise documentation. Everything applies to
request-promise-any except the following:
.finally(...)method is not available.
This module is installed via npm:
npm install --save requestnpm install --save request-promise-any
request is defined as a peer-dependency and thus has to be installed separately.
First, install your preferred Promise library. E.g. Q:
npm install --save q
Then, register the Promise library before you require
request-promise-any for the first time:
var rp =
For a list of supported Promise libraries and advanced registration features read the documentation of
To set up your development environment:
cdto the main folder,
npm install gulp -gif you haven't installed gulp globally yet, and
gulp dev. (Or run
node ./node_modules/.bin/gulp devif 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
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.
@request/promise-coreversion for safer versioning
In case you never heard about the ISC license it is functionally equivalent to the MIT license.
See the LICENSE file for details.