Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pogoscript.org has some nice features to let you use async like it was sync.

  fs = require 'fs'
  mojo = fs.readFile 'mojo.txt' 'utf-8' ^!
  console.log (mojo)
(note that if readFile returned a promise you wouldn't need to use the ^)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: