Menu-simple
This module allows to create a simple console menu for your node application. It allows you to register menu items with their handlers.
Installation
npm install menu-simple
Methods
var menu = ;
Each method returns reference on self object, so calls could be chained.
menu.add(title, handler)
Add item to the menu. Returns menu for chaining calls.
- title - title of the menu item;
- handler - item handler function;
menu;
menu.show(config)
Shows menu
- config - Optional , conatains messages;
menu;
Example
Live Example
will be provided soon