Skip to content

Instantly share code, notes, and snippets.

@pgte
Created September 14, 2010 10:47
Show Gist options
  • Save pgte/578855 to your computer and use it in GitHub Desktop.
Save pgte/578855 to your computer and use it in GitHub Desktop.
var Step = require('step');
Step(
function readSelf() {
fs.readFile(__filename, this);
},
function capitalize(err, text) {
if (err) {
throw err;
}
return text.toUpperCase();
},
function showIt(err, newText) {
sys.puts(newText);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment