pediatric-ai-scribe-v3/mobile/node_modules/signal-exit
Daniel d3ee6001c1 Add Capacitor native mobile app (PedScribe) for iOS + Android
New mobile/ directory with Capacitor project:
- Configurable server URL launcher (default: app.pedshub.com)
- Android: foreground service + wake lock for background recording
  (AudioRecordingService preserved from existing TWA)
- iOS: background audio mode + microphone permission
- App ID: com.pedshub.scribe
- Both platforms initialized and synced

Existing android/ TWA project untouched — this is a separate project.
Build: cd mobile && npx cap open android (or ios)
2026-04-11 02:18:06 +02:00
..
index.js Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
LICENSE.txt Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
package.json Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
README.md Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
signals.js Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00

signal-exit

Build Status Coverage NPM version Standard Version

When you want to fire an event no matter how a process exits:

  • reaching the end of execution.
  • explicitly having process.exit(code) called.
  • having process.kill(pid, sig) called.
  • receiving a fatal signal from outside the process

Use signal-exit.

var onExit = require('signal-exit')

onExit(function (code, signal) {
  console.log('process exited!')
})

API

var remove = onExit(function (code, signal) {}, options)

The return value of the function is a function that will remove the handler.

Note that the function only fires for signals if the signal would cause the process to exit. That is, there are no other listeners, and it is a fatal signal.

Options

  • alwaysLast: Run this handler after any other signal or exit handlers. This causes process.emit to be monkeypatched.