Created
February 4, 2022 20:49
-
-
Save cristian495/20b1d3a93af66aaf54471698c571a6a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dir = "/folderpath"; | |
if (!fs.existsSync(dir)) { | |
fs.mkdirSync(dir); | |
} | |
fs.writeFileSync( | |
`notes/A.txt`, | |
Buffer.from("sometextabcdef") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment