Skip to content

Instantly share code, notes, and snippets.

@MrJacz
Created March 29, 2019 19:42
Show Gist options
  • Save MrJacz/d64f3081c1d95802b2a404c1bb5a8da5 to your computer and use it in GitHub Desktop.
Save MrJacz/d64f3081c1d95802b2a404c1bb5a8da5 to your computer and use it in GitHub Desktop.
there
public someFuncName(uri, data) {
return new Promise((resolve, reject) => {
writeFile(uri, data, err => {
if (err) return reject(err);
resolve(true);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment