To be used with Procmon.
$ npm i procmon-agent
require('procmon-agent')();
Or, with options:
require('procmon-agent')(options);
- autoStart: (default: true) - make agent listen
- path: unix socket server path: (defaults to
/tmp/procmon-agent-{PID}.sock
)
You can stop the agent:
var agent = require('procmon-agent')(options);
// ...
agent.close();
ISC