Thursday, 1 June 2017

Alternative for .then() after request()

I'm new to NodeJS. I have an asynchronous function

request({url: 'url',json: true}, function (error, response, body) {});

I want to call a function only after this function is invoked. I can't call a .then() here. What are the other alternatives for this situation?



via ARUNIMA

No comments:

Post a Comment