JSPM

process-bootstrap

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q45838F
  • License MIT

Node.js module to help you bootstrap your `process`

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-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.