Zero-dependency Node.js confirm command. Useful for NPM scripts.
Firstly, install the package using Yarn:
yarn add --dev confirm-bin
Once that's done, use this command as follows:
yarn confirm "Do you want to continue?" && echo "Alright, let's continue!"
Stephan de Vries (@stephan281094)