bare-process
Node.js-compatible process control for Bare
stable
Source
Source
bare-process — Node.js-compatible process control for Bare.
Mirrors the Node.js process module.
npm i bare-processUsage
const process = require('bare-process')
process.exit()To make the process object globally available, do:
require('bare-process/global')API
Types
ProcessEvents
interface ProcessEvents extends EventMap {
beforeExit: [code: number]
exit: [code: number]
idle: []
resume: []
suspend: [linger: number]
uncaughtException: [err: unknown]
unhandledRejection: [reason: unknown, promise: Promise<unknown>]
SIGBREAK: []
SIGHUP: []
SIGINT: []
SIGPIPE: []
SIGTERM: []
SIGWINCH: []
}Events emitted by process.
bare-process/global
Types
Process
type Process = typeof processAlias for the type of the global process object.
See also
- Bare modules — the full
bare-*catalog. - Bare runtime API — the runtime these modules extend.