I searched extensively and widely for a node module that provides a CLPL command-line interface like CLI for a node application.
What I'm looking for is a hybrid between inquirer or prompt and commander .
Node provides a built-in REPL module , however it just exposes the raw javascript of your application. I want to create a virtual interface for an application.
For example, if you run node server.js, you will be prompted:
server:~$
This will behave like a basic unix prompt in your own virtual context. Press enter:
server:~$
server:~$
Or help:
server:~$ help
Commands:
debug [setting] Enables or disables debugging.
show stats Displays live stats for your web server.
server:~$
And you can execute custom commands:
server:~$ debug on -v 7
Debugging turned on with a verbosity of 7
... live logging ...
, NPM ?
9
- , , Vorpal, CLI Node.