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.
- Host: GitHub
- URL: https://github.com/trapcodeio/semantic-inquirer
- Owner: trapcodeio
- Created: 2020-11-10T13:45:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T09:49:17.000Z (about 5 years ago)
- Last Synced: 2025-10-06T19:02:34.508Z (5 months ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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);
```