cancelled-cli

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i cancelled-cli

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.99 kB

Total Files

3

Last publish

Collaborators

  • csalam07