0.1.5 • Published 8 years ago

fuzzy_cli_menu v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

fuzzy_cli_menu

Simple cli menu with fuzzy filtering

fuzzy_cli_menu_in_action

Installation

npm install fuzzy_cli_menu

Usage

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();

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request

License

MIT

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago