Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block4.js Secret

Last active February 21, 2018 14:48
Show Gist options
  • Save kepta/c9f19a077b217483d202f24b705399a7 to your computer and use it in GitHub Desktop.
Save kepta/c9f19a077b217483d202f24b705399a7 to your computer and use it in GitHub Desktop.
return new Promise((res, rej) => {
fs.readFile("/etc/passwd", function(err, data) {
if (err) return rej(err);
return res(data);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment