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
1
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-cli
Yarn
yarn add cancelled-cli
Usage
import cancelledCli from 'cancelled-cli';
// user canceled the CLI execution for any specific response
const res = await getUserResponse();
cancelledCli(res);
// ❯ Cancelled!
License
- MIT © cslam07