@christophemarois/yncli

1.0.0 • Public • Published

yncli

CLI utility that asks a y/n prompt and exits with the corresponding status code. Uses prompts.

Useful for preventing destructive actions from happening unintentionally.

Install

npm install --save yncli ## for use in a project
npm install --global yncli ## for use globally

Usage

yncli && echo 1 # echos 1 if user answered positively
yncli 'This will launch the rocket. Confirm?' && ./launch

Readme

Keywords

Package Sidebar

Install

npm i @christophemarois/yncli

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.49 kB

Total Files

4

Last publish

Collaborators

  • christophemarois