1.0.1 • Published 2 years ago

cancelled-cli v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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