{"id":18738632,"url":"https://github.com/nathanboktae/knockout-choose","last_synced_at":"2026-05-17T11:35:04.220Z","repository":{"id":58241197,"uuid":"42416001","full_name":"nathanboktae/knockout-choose","owner":"nathanboktae","description":"A lightweight and powerful select alternative to let users choose items from many options","archived":false,"fork":false,"pushed_at":"2017-09-28T21:53:48.000Z","size":60,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-16T09:48:50.627Z","etag":null,"topics":["knockout","selectbox","web-component"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanboktae.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}},"created_at":"2015-09-13T22:52:49.000Z","updated_at":"2019-09-27T19:41:56.000Z","dependencies_parsed_at":"2022-08-31T00:22:34.681Z","dependency_job_id":null,"html_url":"https://github.com/nathanboktae/knockout-choose","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/nathanboktae/knockout-choose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanboktae%2Fknockout-choose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanboktae%2Fknockout-choose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanboktae%2Fknockout-choose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanboktae%2Fknockout-choose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanboktae","download_url":"https://codeload.github.com/nathanboktae/knockout-choose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanboktae%2Fknockout-choose/sbom","scorecard":{"id":675539,"data":{"date":"2025-08-11","repo":{"name":"github.com/nathanboktae/knockout-choose","commit":"d6181cc8d1d77c55ea9f26a5ab91b644ddc97add"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T21:19:43.212Z","repository_id":58241197,"created_at":"2025-08-21T21:19:43.212Z","updated_at":"2025-08-21T21:19:43.212Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":["knockout","selectbox","web-component"],"created_at":"2024-11-07T15:29:46.895Z","updated_at":"2026-05-17T11:35:04.201Z","avatar_url":"https://github.com/nathanboktae.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## knockout-choose\n\n### A lightweight and powerful select alternative to let users choose items from many options as a modern Knockout component\n\n[![Build Status](https://secure.travis-ci.org/nathanboktae/knockout-choose.png)](http://travis-ci.org/nathanboktae/knockout-choose)\n\n[![SauceLabs Test Status](https://saucelabs.com/browser-matrix/knockout-choose.svg)](https://saucelabs.com/u/knockout-choose)\n\n### Examples\n\nSee all of these [examples live!](http://nathanboktae.github.io/knockout-choose/)\n\n#### Single select of strings\n\n```html\n\u003cchoose params=\"options: fruits, selected: selected\"\u003e\u003c/choose\u003e\n\u003cscript\u003e\n  ko.applyBindings({\n    fruits: ['banana', 'apple', 'strawberry', 'pineapple'],\n    selected: ko.observable()\n  })\n\u003c/script\u003e\n```\n\n#### Single select of objects\n\n```html\n\u003cchoose params=\"options: people, selected: selected\"\u003e\n  \u003cchoose-match\u003e\u003cspan data-bind=\"text: $data ? name + ' is ' + age : 'Select a person'\"\u003e\u003c/span\u003e\u003c/choose-match\u003e\n  \u003cchoose-item\u003e\u003c!-- ko text: name --\u003e\u003c!-- /ko --\u003e\u003c/choose-item\u003e\n\u003c/choose\u003e\n\n\u003cscript\u003e\n  ko.applyBindings({\n    people: [{\n      name: 'Bob',\n      age: 31\n    }, {\n      name: 'Jane',\n      age: 25\n    }, {\n      name: 'Anne',\n      age: 42\n    }],\n    selected: ko.observable()\n  })\n\u003c/script\u003e\n```\n\n#### Multiple select of objects\n\n```html\n\u003cchoose params=\"options: people, selected: selected, multiple: true\"\u003e\n  \u003cchoose-match\u003e\u003cspan data-bind=\"text: $root.selectionText($data)\"\u003e\u003c/span\u003e\u003c/choose-match\u003e\n  \u003cchoose-item\u003e\u003cspan data-bind=\"text: $data.name\"\u003e\u003c/span\u003e is \u003cspan data-bind=\"text: $data.age\"\u003e\u003c/span\u003e\u003c/choose-item\u003e\n\u003c/choose\u003e\n\n\u003cscript\u003e\n  ko.applyBindings({\n    people: [{\n      name: 'Bob',\n      age: 31\n    }, {\n      name: 'Jane',\n      age: 25\n    }, {\n      name: 'Anne',\n      age: 42\n    }],\n    selected: ko.observableArray(),\n\n    selectionText: function(data) {\n      return data.length ?\n        data.length + ' people selected: ' + data.map(p =\u003e p.name).join(', ') :\n        'Nobody selected'\n    }\n  })\n\u003c/script\u003e\n```\n\n\n### API\n\n- `options`: If an array or observable array (of any object), they are the items the user chooses from. If an object, grouping is enabled, by properties of the object that have array/observableArray values as options.\n- `selected`: A writable observable for the selected item, or `observableArray` for multiselect mode.\n- `selectProperty`: The property of the selected object to bind to the `selected` observable. For example, in the above example with people object as choices, if `selectProperty` was `name`, the `selected` observable would be the string matching the `name` property of the object that was selected.\n- `disabled`: An expression, observable, or scalar that if is truthy, disables the dropdown, disallowing selection changes or the dropdown to open.\n- `disabledItems`: An expression, observable, or scalar of an array of items that are shown (marked with `aria-disabled`) but cannot be selected.\n\n#### Options only for multiple selection\n\n- `max`: An expression or observable number of the maximum items that can be selected. It will not proactively remove items that exceed the max, but disable additional selections until the number of selected items are less than the max.\n- `unshift`: A boolean or observable boolean to put selected items to unshift items to the front of the array rather then push them on the end.\n\nSee [the tests](https://github.com/nathanboktae/knockout-choose/blob/master/tests/tests.js) for more specifics.\n\n### Installation\n\nvia bower\n\n```\nbower install knockout-choose\n```\n\nor via npm\n\n```\nnpm install knockout-choose\n```\n\nAn optional and highly recommended dependency is [`knockout-css3-animation`](https://github.com/nathanboktae/knockout-css3-animation/) for animating the dropdown.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanboktae%2Fknockout-choose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanboktae%2Fknockout-choose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanboktae%2Fknockout-choose/lists"}