Package Exports
- process-bootstrap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (process-bootstrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
process-bootstrap
process-bootstrap is a Node.js module that does some basic process setup for you.
Installation
npm install --save process-bootstrapAPI
export default function bootstrap(processName: string, defaultDebugKey?: string)Example Usage
import bootstrap from 'process-bootstrap'
bootstrap('motion', 'MOTION')
// Yep, that's all folksFeatures
- Sets
process.titleso the process doesn't get killed bykillall nodeand can be searched likepidof motion - Listens on
unhandledRejectionanduncaughtExceptionevents - Sets default debugging key to be used by
debugmodule
License
This project is licensed under the terms of MIT License. See the LICENSE file for more info.