I have a node js process running on windows 10. I want to change the name of the process so that i can get some performance details. I tried changing the process.title property of the process object but, it does not reflect in the power shell. I can find only node as the process name. Is there any other way to change the process name in windows.
Change name on OS level
1. Rename your node binary to foobar
2. Change package.json start script from node start.js
to foobar start.js
Change name from JavaScript code
You can't change process name from JavaScript code. Node.js is libuv + V8. JavaScript read and run after process already created.
In node.js, you can get/set process.title
In the browsers, you can get/set document.title
Hope that helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With