I'm building an app using express js and using request(v-2.88.2) to get data from an api
request(url, function(error, request, body) {
var data = JSON.parse(body);
});
I want to use var data in other functions.
Are there any ways to do this?