UNPKG

zents-cli

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

16 lines (15 loc) 719 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk_1 = tslib_1.__importDefault(require("chalk")); const figures_1 = tslib_1.__importDefault(require("figures")); const heart = chalk_1.default.red(figures_1.default('♥')); const hook = async function () { // nodemon captures SIGINT, this makes sure the process is exit correctly process.on('SIGINT', () => process.exit(0)); process.on('SIGTERM', () => process.exit(0)); process.on('exit', () => { process.stdout.write(`\n${chalk_1.default.bgMagenta.white.bold('[ZenTS-CLI]')} Thanks for using ZenTS! Goodbye ${heart}${heart}${heart}\n`); }); }; exports.default = hook;