{"id":16458479,"url":"https://github.com/pionl/listr-inquirer","last_synced_at":"2025-10-27T09:31:10.466Z","repository":{"id":66356638,"uuid":"149653068","full_name":"pionl/listr-inquirer","owner":"pionl","description":"Inquirer module for Listr","archived":false,"fork":false,"pushed_at":"2018-09-20T18:35:44.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T04:31:49.076Z","etag":null,"topics":["command-line","inquirer","listr","nodejs","prompt","task-list"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pionl.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-20T18:29:52.000Z","updated_at":"2021-07-18T02:15:29.000Z","dependencies_parsed_at":"2023-06-18T15:35:39.020Z","dependency_job_id":null,"html_url":"https://github.com/pionl/listr-inquirer","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"b6ebc0772611fc7fe7fb369108c9d4f1984a181e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pionl%2Flistr-inquirer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pionl%2Flistr-inquirer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pionl%2Flistr-inquirer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pionl%2Flistr-inquirer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pionl","download_url":"https://codeload.github.com/pionl/listr-inquirer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238471996,"owners_count":19478141,"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":["command-line","inquirer","listr","nodejs","prompt","task-list"],"created_at":"2024-10-11T10:45:22.145Z","updated_at":"2025-10-27T09:31:05.181Z","avatar_url":"https://github.com/pionl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://badge.fury.io/js/listr-inquirer.svg)](http://badge.fury.io/js/listr-inquirer)\n\n\u003e Input module for [Listr](https://github.com/SamVerschueren/listr) and [Inquirer](https://github.com/SBoudrias/Inquirer.js)\n\n\n## Install\n\n```\n$ npm install --save listr-inquirer\n```\n\n\n## Usage\n\n```js\nconst Listr = require('listr');\nconst inquirer = require('listr-inquirer');\n\nconst list = new Listr([\n\t{\n\t\ttitle: 'Retrieving data',\n\t\ttask: (ctx, task) =\u003e inquirer([\n\t\t\t{\n                type: 'confirm',\n                name: 'continue',\n                message: 'Do you want to continue?'\n            }\n\t\t], function (answers) {\n\t\t\tif (false === answers.continue) {\n\t\t\t\ttask.skip('Skipped')\n\t\t\t}\n\t\t})\n\t}\n]);\n\nlist.run();\n```\n\n\n## API\n\n### input(questions, done)\n\nReturns an Observable which asks given set of questions.\n\n#### questions\n\nType: `array`\n\nhttps://github.com/SBoudrias/Inquirer.js/#question\n\n### done\n\nType: `function`\n\nFunction that will be invoked when the user has answered the questions\n\n\n## License\n\nMIT © Original code from [listr-input](https://github.com/SamVerschueren/listr-input) by  [Sam Verschueren](https://github.com/SamVerschueren)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpionl%2Flistr-inquirer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpionl%2Flistr-inquirer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpionl%2Flistr-inquirer/lists"}