Can someone help me translate the following to coffeescript?
Step(
function readSelf() {
fs.readFile(__filename, this);
},
function capitalize(err, text) {
if (err) throw err;
return text.toUpperCase();
},
function showIt(err, newText) {
if (err) throw err;
console.log(newText);
}
);
CoffeeScript equivalent will be the following.
You can use this site for this purpose http://js2coffee.org/ or you can download and install the code from https://github.com/rstacruz/js2coffee and use it on your machine.