confirm

Command line confirmation tool

RealJSON

Command line confirmation tool

npm install confirm

$ confirm && echo 'yay' || echo 'nay'