In node.js, it being event-driven, all I/O is done via callbacks. So I end up writing code that looks like this:
app.get(\'/test\', function (req, res) { ht
You can use promises. Check this out https://github.com/kriskowal/q