Skip to content

Comedalte/mini-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-menu

Description

This is a menu for node terminal applications.

Example usage

var menuCreator = require('mini-menu');

var menu = menuCreator();
menu.title = "MINI-MENU";
menu.color = "green";
menu.add("Option one", function() { 
	console.log("Option one");
	menu.show();
});
menu.add("To submenu", function() { 
	submenu.show();
});
menu.add("Exit", function() { console.log("Goodbye")});


var submenu = menuCreator();
submenu.title = "SUBMENU";
submenu.color = "white";
submenu.textcolor = "red";
submenu.add("Token", function() { console.log("Hello"); submenu.show(); });
submenu.add("Exit", function() { 
	menu.show(); 
});


menu.show();

Screenshot

mini-menu example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published