https://github.com/wood3n/inquirer-test
https://github.com/wood3n/inquirer-test
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wood3n/inquirer-test
- Owner: wood3n
- Created: 2021-01-10T03:25:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T15:18:35.000Z (over 4 years ago)
- Last Synced: 2025-01-26T08:26:18.780Z (4 months ago)
- Language: JavaScript
- Size: 261 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Inquirer 测试
## questions
### type
- `input`:问题要求输入
- `number`:要求输入数字,非数字得到的答案将会是`null`
- `confirm`:输入确认,`Y/n`
- `list`:选择项,必须同时提供`choices`属性\
- `rawlist`:带有编号的选择项,必须同时提供`choices`属性
- `expand`:也是选项,提供编号以及更复杂的选项内容
- `checkbox`:多选框,一般来说按空格键是选择
- `password`:密码输入,注意一般同时设置`mask: '*'`,否则看不见输入的字符
- `editor`:打开选择的编辑器进行输入