title

Name of the process

console.log("The process title is: " + process.title);
$ node doc_test.js 
The process title is: node

It’s important to note that using a shebang will set process.title to the appropriate interpreter:

#!/usr/local/bin/node
console.log("The process title is: " + process.title);
$ ./doc_test.js 
The process title is: /usr/local/bin/node

Absolute paths will be included as well if run with one:

$ /usr/local/bin/node doc_test.js 
The process title is: /usr/local/bin/node

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s