https://github.com/bukinoshita/autocomplete-cli
Command line interface autocomplete
https://github.com/bukinoshita/autocomplete-cli
auto autocomplete cli command complete interface line
Last synced: 7 months ago
JSON representation
Command line interface autocomplete
- Host: GitHub
- URL: https://github.com/bukinoshita/autocomplete-cli
- Owner: bukinoshita
- License: mit
- Created: 2017-10-25T14:50:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T02:27:08.000Z (almost 3 years ago)
- Last Synced: 2025-03-16T17:45:16.267Z (7 months ago)
- Topics: auto, autocomplete, cli, command, complete, interface, line
- Language: JavaScript
- Homepage:
- Size: 3.83 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# autocomplete-cli [](https://travis-ci.org/bukinoshita/autocomplete-cli)
> Command line interface autocomplete
## Install
```bash
$ yarn add autocomplete-cli
```## Usage
```js
const autoComplete = require('autocomplete-cli')const start = '> Choose a band: '
const suggestions = new Set(['blink-182', 'green day', '+44'])await autoComplete({ start, suggestions })
```## Demo
## Related
- [prompt-email](https://github.com/bukinoshita/prompt-email) — Command line interface prompt email with autocompletion, validation and email lookup
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)