Skip to content

Instantly share code, notes, and snippets.

@moosehawk
Created September 14, 2016 16:39
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 moosehawk/a6508e8467703503c22056c58ae03854 to your computer and use it in GitHub Desktop.
Save moosehawk/a6508e8467703503c22056c58ae03854 to your computer and use it in GitHub Desktop.
async callback
fs.readFile('/etc/passwd', (err, data) => {
if (err) throw err;
console.log(data);
});
doSomeOtherThings();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment