In the npm CLI,
process.title is overridden to be
This has the potential advantage of cleaning up the output of
pgrep, but it has the downside of hiding the arguments that the CLI was invoked with.
I discovered this because I use a
tmux plugin called “resurrect” that is able to save and restore
tmux sessions. It is able to automatically restart running programs for you, but specifically mentions not being able to restart
npm because its arguments are not available in the output of
Why does the CLI override
process.title? Would the CLI team be open to removing the override?