{"id":15329013,"url":"https://github.com/shazron/inquirer-table-prompt","last_synced_at":"2025-10-09T21:30:19.695Z","repository":{"id":40943401,"uuid":"506156674","full_name":"shazron/inquirer-table-prompt","owner":"shazron","description":"A table-like prompt for Inquirer","archived":false,"fork":true,"pushed_at":"2022-09-19T12:49:47.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-02T09:46:01.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/inquirer-table-prompt","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"eduardoboucas/inquirer-table-prompt","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shazron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-22T08:12:44.000Z","updated_at":"2022-06-22T12:36:53.000Z","dependencies_parsed_at":"2023-01-18T09:49:20.887Z","dependency_job_id":null,"html_url":"https://github.com/shazron/inquirer-table-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2Finquirer-table-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2Finquirer-table-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2Finquirer-table-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2Finquirer-table-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shazron","download_url":"https://codeload.github.com/shazron/inquirer-table-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235866240,"owners_count":19057583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:45:59.404Z","updated_at":"2025-10-09T21:30:19.261Z","avatar_url":"https://github.com/shazron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inquirer-table-prompt [![npm version](https://badge.fury.io/js/inquirer-table-prompt.svg)](https://badge.fury.io/js/inquirer-table-prompt)\n\n\u003e A table-like prompt for [Inquirer.js](https://github.com/SBoudrias/Inquirer.js)\n\n![Screen capture of the table prompt](screen-capture.gif)\n\n## Installation\n\n```\nnpm install --save inquirer-table-prompt\n```\n\n## Usage\n\nAfter registering the prompt, set any question to have `type: \"table\"` to make use of this prompt.\n\nThe result will be an array, containing the value for each row.\n\n```js\ninquirer.registerPrompt(\"table\", require(\"./index\"));\n\ninquirer\n  .prompt([\n    {\n      type: \"table\",\n      name: \"workoutPlan\",\n      message: \"Choose your workout plan for next week\",\n      columns: [\n        {\n          name: \"Arms\",\n          value: \"arms\"\n        },\n        {\n          name: \"Legs\",\n          value: \"legs\"\n        },\n        {\n          name: \"Cardio\",\n          value: \"cardio\"\n        },\n        {\n          name: \"None\",\n          value: undefined\n        }\n      ],\n      rows: [\n        {\n          name: \"Monday\",\n          value: 0\n        },\n        {\n          name: \"Tuesday\",\n          value: 1\n        },\n        {\n          name: \"Wednesday\",\n          value: 2\n        },\n        {\n          name: \"Thursday\",\n          value: 3\n        },\n        {\n          name: \"Friday\",\n          value: 4\n        },\n        {\n          name: \"Saturday\",\n          value: 5\n        },\n        {\n          name: \"Sunday\",\n          value: 6\n        }\n      ]\n    }\n  ])\n  .then(answers =\u003e {\n    /*\n    { workoutPlan:\n      [ 'arms', 'legs', 'cardio', undefined, 'legs', 'arms', undefined ] }    \n    */\n    console.log(answers);\n  });\n```\n\n### Options\n\n- `columns`: Array of options to display as columns. Follows the same format as Inquirer's `choices`\n- `rows`: Array of options to display as rows. Follows the same format as Inquirer's `choices`\n- `pageSize`: Number of rows to display per page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazron%2Finquirer-table-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshazron%2Finquirer-table-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazron%2Finquirer-table-prompt/lists"}