【文件属性】:
文件名称:inquirer-glob-prompt:询问者提示提示
文件大小:51KB
文件格式:ZIP
更新时间:2021-04-04 07:00:40
JavaScript
查询者提示
提示提示。 提示输入一个glob,并在键入时列出匹配的文件。
安装
$ npm install --save inquirer-glob-prompt
用法
const inquirer = require ( 'inquirer' )
// you can change 'glob' to any prefered type name
inquirer . registerPrompt ( 'glob' , require ( 'inquirer-glob-prompt' ) )
inquirer . prompt ( [ {
type : 'glob' ,
name : 'filePaths'
// ...
} ] ) . then ( answers => {
console . log ( answers )
} )
选项
具有type , name ,
【文件预览】:
inquirer-glob-prompt-master
----.eslintrc(280B)
----.github()
--------release-drafter.yml(571B)
--------dependabot.yml(130B)
--------workflows()
----yarn.lock(99KB)
----example.js(340B)
----LICENSE(1KB)
----test()
--------.eslintrc(21B)
--------index.test.js(10KB)
----.gitignore(25B)
----index.js(4KB)
----readme.md(1004B)
----package.json(813B)
----.nycrc(79B)