Promises with API callbacks using async-get-json

node v4.9.1
version: 1.0.0
endpointsharetweet
var getJSON = require("async-get-json"); var terms = ['Brainf**k', 'Velato', 'Ook!']; var promises = terms.map(term => getJSON('https://api.github.com/search/repositories?q=' + term)); await Promise.all(promises);
Loading…

no comments

    sign in to comment