Answer the question
In order to leave comments, you need to log in
Node.js module | How to get body out of request?
const request = require('request');
request({
uri: 'mysite.com/somejson.json'
}, function(error, response, body){
// код здесь
}
Answer the question
In order to leave comments, you need to log in
How can I output body to some variable? Or to receive the answer at once through return in function? Is there any other way?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question