Monday 13 November 2017

How can I do an array of requests using request promise and then wait for all to finish .

Doing a bit of fun late night coding{code}let rp = require('request-promise-native');rp(url).then(function (htmlString, body) { let jsonP = (JSON.parse(htmlString) // then do another dozen requests here, and at the end of them all continue{code}

Submitted November 14, 2017 at 06:46AM by ForSprint09

No comments:

Post a Comment