{"id":17086325,"url":"https://github.com/kach/chosen","last_synced_at":"2026-05-08T11:01:31.476Z","repository":{"id":19496434,"uuid":"22742654","full_name":"kach/chosen","owner":"kach","description":"Easy and beautiful CLI multiple-choice selection","archived":false,"fork":false,"pushed_at":"2014-08-08T02:53:30.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T14:37:03.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kach.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":"2014-08-08T01:58:13.000Z","updated_at":"2014-08-08T01:58:26.000Z","dependencies_parsed_at":"2022-08-30T16:01:43.381Z","dependency_job_id":null,"html_url":"https://github.com/kach/chosen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kach/chosen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Fchosen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Fchosen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Fchosen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Fchosen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kach","download_url":"https://codeload.github.com/kach/chosen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Fchosen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32777649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-14T13:28:16.502Z","updated_at":"2026-05-08T11:01:31.445Z","avatar_url":"https://github.com/kach.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"chosen\n======\n\nchosen is a node module to make multiple-choice questions easy on CLIs.\n\nInstall\n-------\n\n`npm install chosen`\n\nUse\n---\n\n```js\n\nvar choose = require(\"chosen\").choose;\n\nconsole.log(\"What is your favorite language?\");\nchoose(\n    [\"English\", \"Klingon\", \"Malbolge\"],\n    function(answer, index) {\n        console.log(\"I like \" + answer + \", too!\");\n    },\n    {} // options\n);\n```\n\nStyles\n------\nYou can feed any of the following options:\n\n* **style**: one of `[\"\u003e\", \"gray\", \"indent\"]`, or an object `{normal: \u003cfunction\u003e, chosen: \u003cfunction\u003e}`, where the functions return a formatted version of their inputs\n\nInteraction\n-----------\nchosen interaction was—ahem—*chosen* to be intuitive:\n* `\u003center\u003e` and `\u003cspace\u003e` select the current choice\n* `\u003cesc\u003e` and `\u003c^C\u003e` to escape (sends `null`)\n* `(up arrow, down arrow)`, `(k,j)` (vim!),`(q, a)`, and `(p, l)` for scrolling up/down (any other key defaults to \"down\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkach%2Fchosen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkach%2Fchosen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkach%2Fchosen/lists"}