All Projects → derhuerst → cli-autocomplete

derhuerst / cli-autocomplete

Licence: ISC license
A command line prompt with autocompletion.

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Labels

Projects that are alternatives of or similar to cli-autocomplete

Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (+574.07%)
Mutual labels:  prompt
Mercury
Mercury is a hacking tool used to collect information and use the information to further hurt the target
Stars: ✭ 236 (+774.07%)
Mutual labels:  prompt
impromptu.nvim
Create prompts fast and easy
Stars: ✭ 39 (+44.44%)
Mutual labels:  prompt
Sharprompt
Interactive command line interface toolkit for C#
Stars: ✭ 197 (+629.63%)
Mutual labels:  prompt
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+58225.93%)
Mutual labels:  prompt
rainbow-bash-prompt
Make your bash prompt dynamically and randomly rainbow
Stars: ✭ 49 (+81.48%)
Mutual labels:  prompt
Promptless
🚀 A super fast and extremely minimal shell prompt.
Stars: ✭ 155 (+474.07%)
Mutual labels:  prompt
bureau
💻 Informative and fast ZSH prompt with git status. Works well with HUGE repositories. Show username, hostname, path, git branch and status.
Stars: ✭ 27 (+0%)
Mutual labels:  prompt
Cli Prompt
Allows you to prompt for user input on the command line, and optionally hide the characters they type
Stars: ✭ 228 (+744.44%)
Mutual labels:  prompt
terminer
Upgrade your terminal experience with a single command.
Stars: ✭ 28 (+3.7%)
Mutual labels:  prompt
Survey
A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
Stars: ✭ 2,843 (+10429.63%)
Mutual labels:  prompt
Inquirer.js
A collection of common interactive command line user interfaces.
Stars: ✭ 15,378 (+56855.56%)
Mutual labels:  prompt
prompt-password-strength
Custom mask function for prompt-password that adds a 'strength progress meter' that changes color as the password strength increases. Uses zxcvbn, the popular password strength estimation tool brought to you by dropbox.
Stars: ✭ 18 (-33.33%)
Mutual labels:  prompt
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+51488.89%)
Mutual labels:  prompt
credit-card-prompt
Credit card prompt with validation and address lookup
Stars: ✭ 13 (-51.85%)
Mutual labels:  prompt
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+48007.41%)
Mutual labels:  prompt
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (+781.48%)
Mutual labels:  prompt
prompt-list
This repository has been archived, use Enquirer instead.
Stars: ✭ 13 (-51.85%)
Mutual labels:  prompt
ax5ui-dialog
Javascript UI Component - Dialog - JavaScript Dialog / Bootstrap Dialog
Stars: ✭ 29 (+7.41%)
Mutual labels:  prompt
react-st-modal
Simple and flexible modal dialog component for React JS
Stars: ✭ 41 (+51.85%)
Mutual labels:  prompt

cli-autocomplete

Deprecated. Use the autocomplete prompt from enquirer.


A command line prompt with autocompletion. It provides just the ui, you are responsible for relevant completions.

asciicast

npm version build status dependency status dev dependency status ISC-licensed chat on gitter

cli-autocomplete uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.

Installing

npm install cli-autocomplete

Usage

const autocompletePrompt = require('cli-autocomplete')

const colors = [
	{title: 'red',    value: '#f00'},
	{title: 'yellow', value: '#ff0'},
	{title: 'green',  value: '#0f0'},
	{title: 'blue',   value: '#00f'},
	{title: 'black',  value: '#000'},
	{title: 'white',  value: '#fff'}
]
const suggestColors = (input) => Promise.resolve(colors
	.filter((color) => color.title.slice(0, input.length) === input))

autocompletePrompt('What is your favorite color?', suggestColors)
.on('data', (e) => console.log('Interim value', e.value))
.on('abort', (v) => console.log('Aborted with', v))
.on('submit', (v) => console.log('Submitted with', v))

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].