Simple cli menu with fuzzy filtering
npm install fuzzy_cli_menu
var fcm = require("fuzzy_cli_menu");
const menuItems = [{
"name": "Skivee",
"value": function() {
console.log('clicked');
}
}, {
"name": "JumpXS",
"value": function() {
console.log('clicked');
}
}, {
"name": "Skiba",
"value": function() {
console.log('clicked');
}
}, {
"name": "Flashspan",
"value": function() {
console.log('clicked');
}
}, {
"name": "Roomm",
"value": function() {
console.log('clicked');
}
}, {
"name": "Gabspot",
"value": function() {
console.log('clicked');
}
}];
let menu = fcm;
// initialize menu
menu.init(menuItems);
// add new menu element
menu.add('new menu item', function() {
console.log('new menu item');
});
// stop menu
menu.stop();
- Fork it
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request