cancelled-cli
v1.0.1
Published
Let you display cancellation message of a Node.js CLI whenever user pressed CTRL + C or COMMAND (⌘) + C
Downloads
9
Maintainers
Readme
cancelled-cli
Let you display cancellation message of a Node.js CLI whenever user pressed CTRL + C or COMMAND (⌘) + C
Installation
npm
npm install cancelled-cliYarn
yarn add cancelled-cliUsage
import cancelledCli from 'cancelled-cli';
// user canceled the CLI execution for any specific response
const res = await getUserResponse();
cancelledCli(res);
// ❯ Cancelled!License
- MIT © cslam07
