npm.io
0.1.1 • Published 5 years ago

semantic-inquirer

Licence
MIT
Version
0.1.1
Deps
3
Size
18 kB
Vulns
0
Weekly
0

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);

Keywords