Skip to content

Instantly share code, notes, and snippets.

@jlord
Created January 8, 2015 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlord/e4cfdbe12cf8994a3c1f to your computer and use it in GitHub Desktop.
Save jlord/e4cfdbe12cf8994a3c1f to your computer and use it in GitHub Desktop.
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