I guess you could use this:
https://github.com/RethinkRobotics-opensource/rosnodejs