tlrobinson / node-repl-promised

Make any Node.js REPL support promises (Promises/A+).
16 stars 2 forks source link

Support async await syntax #4

Open sibelius opened 8 years ago

sibelius commented 8 years ago

Would be much nicer to support async await syntax ES7

like this:

const user = await User.findOne({})

instead of using promises only:

let user;
User.findOne({}).exec((data) => user=data);