https://github.com/bukinoshita/nicht
:performing_arts: Command line interface prompt bool values
https://github.com/bukinoshita/nicht
boolean cli command-line javascript nodejs prompt
Last synced: over 1 year ago
JSON representation
:performing_arts: Command line interface prompt bool values
- Host: GitHub
- URL: https://github.com/bukinoshita/nicht
- Owner: bukinoshita
- License: mit
- Created: 2017-06-09T20:16:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T04:42:21.000Z (about 7 years ago)
- Last Synced: 2025-02-28T07:51:13.886Z (over 1 year ago)
- Topics: boolean, cli, command-line, javascript, nodejs, prompt
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nicht [](https://travis-ci.org/bukinoshita/nicht)
> Command line interface prompt bool values
## Install
```bash
$ npm install nicht
```
## Usage
```javascript
import nicht from 'nicht'
nitch('Are you okay?')
// => Are you okay? [y|N]
```
## Demo

## API
### nicht(question, { defaultValue, yesChar, noChar })
#### question
Type: `string`
Required
#### defaultValue
Type: `bool`
default: `false`
If user doesn't choose [y|N], it will return `false` as default.
#### yesChar
Type: `string`
default: `y`
#### noChar
Type: `string`
default: `n`
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)