Skip to content

Instantly share code, notes, and snippets.

View HT2Knock's full-sized avatar
🎩
Hats off to you sir

Ngoc Huynh HT2Knock

🎩
Hats off to you sir
  • Saigon/Vietnam
  • 01:04 (UTC -12:00)
  • X @T2Knock
View GitHub Profile
@HT2Knock
HT2Knock / before-shutdown.js
Created May 16, 2023 10:57 — forked from nfantone/before-shutdown.js
Node.js graceful shutdown handler
'use strict';
/**
* @callback BeforeShutdownListener
* @param {string} [signalOrEvent] The exit signal or event name received on the process.
*/
/**
* System signals the app will listen to initiate shutdown.
* @const {string[]}