0.0.2 • Published 7 years ago

nicht v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

nicht Build Status

Command line interface prompt bool values

Install

$ npm install nicht

Usage

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