Skip to content

Instantly share code, notes, and snippets.

@jsiesquen
Created December 20, 2018 15:34
Show Gist options
  • Save jsiesquen/94af933014e6d6eb6b2e7538edd02009 to your computer and use it in GitHub Desktop.
Save jsiesquen/94af933014e6d6eb6b2e7538edd02009 to your computer and use it in GitHub Desktop.
Using request-promise-native module include within a constructor Lambda.
let msurls = ["http://example.org", "http://example.org"]
let request = require ("request-promise-native")
async function doRequests () {
    return await (Promise.all (
        msurls.map (async msurl => await request (msurl)))
    )
}
/* */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment