Node.js - Any way to Recover a Saved-Over Script that is Currently Running?

189 views Asked by At

I've accidentally saved over an existing node.js script-file making it completely blank on the file system. I'm not using any type of version control, so this long script file seems unrecoverable.

However, the app is currently running via pm2 (because it was started before I made this mistake).

Is there any way to recover this file from the running app via the node.js command prompt?

0

There are 0 answers