i've been trying to get repl.it to run code that writes to a textfile, i got it to work once. but then i had to refresh and now it no longer wants to accept the same code. i have to write to file as the console doesnt want to display the entire output if the input gets too big
i've now found a workaround for my issue, but i'd still like to look for other solutions to JS / node.js write to file
my issue was: After first run the package pulled with
var writeFile = require('write'); "write" wouldnt work properly ie. not writing to file citing "undefined"
delete textfile made
"fresh package" downloaded
textfile with expected output present
any easier way to write to file in repl.it?