Gathering detailed insights and metrics for inquirer-autocomplete-prompt-ipt
Gathering detailed insights and metrics for inquirer-autocomplete-prompt-ipt
Gathering detailed insights and metrics for inquirer-autocomplete-prompt-ipt
Gathering detailed insights and metrics for inquirer-autocomplete-prompt-ipt
npm install inquirer-autocomplete-prompt-ipt
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
154 Commits
1 Watchers
22 Branches
1 Contributors
Updated on Oct 22, 2019
Latest Version
2.0.0
Package Id
inquirer-autocomplete-prompt-ipt@2.0.0
Unpacked Size
12.26 kB
Size
4.66 kB
File Count
4
NPM Version
6.12.0
Node Version
12.12.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Autocomplete prompt for inquirer fork, optimized for iPipeTo.
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:
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.
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.
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.
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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 More