Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    batch-requestpublic

    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

    install

    npm i batch-request

    Downloadsweekly downloads

    288

    version

    0.1.4

    license

    ISC

    repository

    githubgithub

    last publish

    collaborators

    • avatar