How would I modify the text in a firepad editor on my webpage using Node? What I'm trying to do is have the user upload a file, then read the contents of the file, and replace the firepad contents with the uploaded file's contents.
I see that there's a firepad npm module https://www.npmjs.com/package/firepad, but it doesn't say how to use it with node. I currently have it setup in my html and using a normal public js file in my node project.
So I was thinking that to update the text, I could either send a post request with the text, and my client side js would receive it and then update the firepad since it has access to the firepad variable there.
Or I could use the npm module, but I'm not sure if it's a full module.