Vorpal - File System Autocompletion
An extension to Vorpal that provides File System-based tabbed autocompletion for a given command. This is an exact match of the autocomplete functionality provided in Unix commands like ls
or cat
.
Installation
npm install vorpal-autocomplete-fsnpm install vorpal
Getting Started
const vorpal = ;const fsAutocomplete = ; vorpal; vorpal ;
$ node myapp.jsmyapp$ cat [tab] [tab]bin/ myapp.js package.json README.mdmyapp~$ cat m [tab]myapp~$ cat myapp.js
Only show directories
To omit files from the autocomplete and only show directories, pass in the directory
option:
vorpal ;
License
MIT © David Caccavella