Alternative for .then() after request()

Viewed 11926

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?

2 Answers
Related