I am hosting my website on Github pages and want to create a TXT file for some user data when someone logs in to my website. I used the fs module to create a file but it didn't work. I think fs doesn't work on Github. Here's my example code-
var fs = require('fs');
var DATA= "blah blah blah";
fs.writeFile("USERDATA.txt", DATA)
I don't know too much about JS so ⬆⬆(the code) can be wrong(If it's wrong please tell me).
I know the Github API but didn't find tutorials that could solve my problem. If you know something about the Github API that would solve my problem pls tell me.