How do I get the value of the text from the example below?
Q.js has an example on using Deferred:
var deferred = Q.defer(); FS.readFile(\"foo.txt\", \"ut
See https://github.com/kriskowal/q#adapting-node
Can be rewritten in a nodejs-like:
var read = Q.nfcall(FS.readFile, FS, "foo.txt", "utf-8"); read().then( function (text) { console.log(text) } );