Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm's 300,000 packages pre-installed, including batch-request with all npm packages installed. Try it out:

var batchRequest = require("batch-request")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

batch-request v0.1.4

Batch Request - Utility library to enable a server to handle batch requests

Batch Request

A simple library for batching HTTP requests

Looking for the Koa version of this module?

View Documentation

Build Status Built with Grunt

QuickStart

Download via NPM

NPM

then in your app

// Use Batch Request as middleware on an endpoint you want to service batch requests
app.post('/batch', batch);

Optionally use our included middleware to check the validity of your batch request

// Include the batch.validate middleware before batch middleware
app.post('/batch', batch.validate, batch);

And that's it!

Proudly written in Washington, D.C. by:

SocialRadar

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free