Answers for "refresh node js server"

1

refresh a page in the browser node js

document.location.reload();
Posted by: Guest on August-17-2021
0

restart node js server windows

Check out nodemon
A tool that helps develop node.js based applications by automatically restarting
the node application when file changes in the directory are detected.

Install it using "npm install nodemon".
Simply use "nodemon server.js" if server.js is the file you're working on.
Posted by: Guest on October-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language