
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
request-as-bluebird
Advanced tools
promise wrapper for the npm request package
wraps the npm request package, in a bluebird promise, resolving with an object containing the response and body or rejecting with an Error; also allows you to turn on debugging using the npm request-debug package.
npm install request-as-bluebird
@param {string|Object} user_options
@param {boolean} [debug]
@returns {Promise}
the request package documentation details available user options. you may also want to consider using the generic-request-options package to create the initial user options object.
var getRequestAsBluebird = require( 'request-as-bluebird' );
getRequestAsBluebird( 'https://www.google.com' )
.then(
/**
* @param {Object} result
* @param {IncomingMessage} result.response
* @param {string} result.body
*/
function( result ) {
// handle resolve
}
)
.catch(
/**
* @param {Error} err
*/
function( err ) {
// handle reject
}
);
var getRequestAsBluebird = require( 'request-as-bluebird' );
getRequestAsBluebird( 'https://www.google.com', true )
.then(
/**
* @param {Object} result
* @param {IncomingMessage} result.response
* @param {string} result.body
*/
function( result ) {
// handle resolve
}
)
.catch(
/**
* @param {Error} err
*/
function( err ) {
// handle reject
}
);
FAQs
promise wrapper for the npm request package
We found that request-as-bluebird demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.