Created
January 8, 2015 22:24
-
-
Save jlord/e4cfdbe12cf8994a3c1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doThis = require('file') | |
// I could also define callback here | |
// but I don't *have* to | |
exec('whatever', function(err, stdout, stdrr) { | |
doThis('file', callback) | |
}) | |
// I can define callback here | |
function callback(err) { | |
// do things | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment