Installations
npm install inquirer-autocomplete-prompt-ipt
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
>=10
Typescript Support
No
Node Version
12.12.0
NPM Version
6.12.0
Statistics
154 Commits
2 Watching
22 Branches
1 Contributors
Updated on 22 Oct 2019
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
2,081,735
Last day
39.8%
4,422
Compared to previous day
Last week
12.4%
26,484
Compared to previous week
Last month
36.7%
97,928
Compared to previous month
Last year
35.5%
830,683
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
inquirer-autocomplete-prompt-ipt
Autocomplete prompt for inquirer fork, optimized for iPipeTo.
:warning: Important info about this fork
This is an attempt to keep a better maintained fork of inquirer-autocomplete-prompt since it's an important dependency of iPipeTo and I do care about having nested dependencies up to date.
Published versions of this fork can be find at inquirer-autocomplete-prompt-ipt package in npm. e.g: npm install inquirer-autocomplete-prompt-ipt
if you want to use it :blush:
Usage
This prompt is anonymous, meaning you can register this prompt with the type name you please:
1inquirer.registerPrompt('autocomplete', require('inquirer-autocomplete-prompt')); 2inquirer.prompt({ 3 type: 'autocomplete', 4 ... 5})
Change autocomplete
to whatever you might prefer.
Options
Note: allowed options written inside square brackets (
[]
) are optional. Others are required.
type
, name
, message
, source
[, pageSize
, filter
, when
, suggestOnly
, validate
]
See inquirer readme for meaning of all except source and suggestOnly.
Source will be called with previous answers object and the current user input each time the user types, it must return a promise.
Source will be called once at at first before the user types anything with undefined as the value. If a new search is triggered by user input it maintains the correct order, meaning that if the first call completes after the second starts, the results of the first call are never displayed.
suggestOnly is default false. Setting it to true turns the input into a normal text input. Meaning that pressing enter selects whatever value you currently have. And pressing tab autocompletes the currently selected value in the list. This way you can accept manual input instead of forcing a selection from the list.
validate is only active when suggestOnly is set to true. It behaves like validate for the input prompt.
Example
1inquirer.registerPrompt('autocomplete', require('inquirer-autocomplete-prompt')); 2inquirer.prompt([{ 3 type: 'autocomplete', 4 name: 'from', 5 message: 'Select a state to travel from', 6 source: function(answersSoFar, input) { 7 return myApi.searchStates(input); 8 } 9}]).then(function(answers) { 10 //etc 11});
See also example.js for a working example.
I recommend using this package with fuzzy if you want fuzzy search. Again, see the example for a demonstration of this.
Credits
License
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'ipt-optimized'
Reason
20 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv
- Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8
- Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65
- Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Score
1.7
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to inquirer-autocomplete-prompt-ipt
inquirer-autocomplete-prompt
Autocomplete prompt for inquirer
inquirer-autocomplete-standalone
Standalone autocomplete cli prompt based on inquirer core
@types/inquirer-autocomplete-prompt
TypeScript definitions for inquirer-autocomplete-prompt
inquirer-checkbox-plus-prompt
Checkbox with autocomplete and other additions for Inquirer