Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// change-some-file.js
const fs = require("fs");
fs.writeFile("foo.txt", "Hello world!", "utf8", err => {
if (err) {
console.log(err);
}
console.log("write is complete");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment