npm.io
1.0.0 • Published 10 years ago

process-bootstrap

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

process-bootstrap

process-bootstrap is a Node.js module that does some basic process setup for you.

Installation

npm install --save process-bootstrap

API

export default function bootstrap(processName: string, defaultDebugKey?: string)
Example Usage
import bootstrap from 'process-bootstrap'

bootstrap('motion', 'MOTION')
// Yep, that's all folks
Features
  • Sets process.title so the process doesn't get killed by killall node and can be searched like pidof motion
  • Listens on unhandledRejection and uncaughtException events
  • Sets default debugging key to be used by debug module
License

This project is licensed under the terms of MIT License. See the LICENSE file for more info.

Keywords