Friday 19 May 2017

NodeJS Promise, delaying return value

I am relatively new to NodeJS and JavaScript, but not programming. I'm looking to return an array of objects after two SSH commands are executed via SSH2 and the output of the commands in the shell has been parsed. I have tried various Promises and examples I have found online, but to no avail. It seems that they just return the empty array without even waiting for the commands to execute. I am looking for any samples or a point in the right direction.

Thanks



via bhawkins

No comments:

Post a Comment