This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const request = require("axios")
const jQueryPath = require("jsonpath")
async function main() {
var body = await request.get('https://api.github.com/repos/scottwrobinson/camo');
return jQueryPath.query(body,"$.data.archive_url");
}
console.log('Body:'+ await main());
Loading…
1 comment
posted 6 years ago by nileshsp
as per post from http://stackabuse.com/node-js-async-await-in-es7/