UNPKG

q

Version:

A library for promises (CommonJS/Promises/A,B,D)

17 lines (13 loc) 247 B
var Q = require("q/util"); var FS = require("q-fs"); Q.step( function () { return FS.read(__filename); }, function (text) { return text.toUpperCase(); }, function (text) { console.log(text); } );