0.1.1 • Published 3 years ago
semantic-inquirer v0.1.1
semantic-inquirer
NOTE This package is currently for personal usage
A semantic version for inquirer npm package
npm i semantic-inquirer
# or
yarn add semantic-inquirer
Usage
const {Q} = require('semantic-inquirer');
async function main(){
const isReady = await Q.yesOrNo('Are you ready to eat?')
console.log(isReady ? 'You are ready to eat!' : 'I will ask some other time.')
const isVegetarian = await Q.trueOrFalse('Vegeteran?');
if(isVegetarian){
// Hide the beefs and chicken
}
}
main().catch(console.log);