Not sure why this synchronous/asynchronous stuff is so confusing to me.
I have a node/electron project, and I simply need to hit a url with a post and return the contents.
(pseudo code)
// do https.request post
function getPage(url) {
do a POST to http.request and grab the contents of url
then RETURN the contents
}
// get page
var cont = getPage('example');
do something with cont :)