Request helper thingy.
Let's go on a (re)quest.
Quester is a smallish wrapper around Request that makes it easy to make batch requests and handle the response as one unit.
It also has support for depdendencies between requests. So POST data or parameters from a request can be used as data to another request. This is done using JSONPath.
Install using npm per usual.
npm install quester --save
The Quester API is pretty simple. This is how you make a GET request.
var quester = ;var client = '';client;
Quester makes it easy to make a bunch of requests at once and process them in one callback.
Please don't mind the terrible HTTP API "design" below.
var quester = ;var client = '';// Queue a get request with additional querystring parametersclient;// Queue a post requestclient;// Suppose '/blog' returns an object with the newly created posts id// and you have an API to get comments for a blogpost.// Setting a parameter to an object with the key "jsonpath" let's you// Add data from a previous request.client;