Socket
Socket
Sign inDemoInstall

app-title

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    app-title

Node module that will setup the process.title for your application automagically


Version published
Weekly downloads
2
Maintainers
1
Install size
40.9 kB
Created
Weekly downloads
 

Readme

Source

app-title

pic

This module will set the process.title to your application name (the one set in package.json).

Example

index.js (your app main file):

require('app-title')();

console.log('process.title === %s', process.title);
console.log('now open `top` and be amazed :)');

setInterval(function() {
  var sum = 0;

  for (var i = 0; i < 6000000; i++) {
    if (i % 2 === 0) {
      sum += i;
    }
  }
}, 1000);

package.json:

{
  "name": "app-title"
}

Run node index.js and then top.

pic

Protip: you can also pass in a custom title directly like in the example below:

require('app-title')('myApp:v2.0')

License

MIT

Keywords

FAQs

Last updated on 18 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc