1.0.0 • Published 4 years ago

@christophemarois/yncli v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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