An open API service indexing awesome lists of open source software.

https://github.com/trapcodeio/semantic-inquirer

Semantic step by steo version of npm's famous inquirer package.
https://github.com/trapcodeio/semantic-inquirer

Last synced: 5 months ago
JSON representation

Semantic step by steo version of npm's famous inquirer package.

Awesome Lists containing this project

README

          

# semantic-inquirer
**NOTE** This package is currently for personal usage

A semantic version for [inquirer](https://npmjs.com/package/inquirer) npm package

```sh
npm i semantic-inquirer
# or
yarn add semantic-inquirer
```

## Usage
```javascript
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);
```