Bash completion
Missed cli completion tool for node.js. Just place cli-complete.js
into home directory to enable bash completion
for your local application.
Install
Completion works only if installed globally because it writes file into /etc/bash_completion.d/
.
npm install cli-completion -g
Usage
Type node
or iojs
first then script name and after that use [TAB]
.
> nodejs app[TAB] # -> app.js
> nodejs app.js serv[TAB] # -> server
Create cli-completion.js
inside your project's directory. Example:
if processargvlength === 3 console;
Or using cli-completion
helper:
var complete = ;
Note
Currently for unix systems only.