{"id":18937377,"url":"https://github.com/fetch/list-filter","last_synced_at":"2025-09-15T07:08:30.765Z","repository":{"id":22200408,"uuid":"25532861","full_name":"fetch/list-filter","owner":"fetch","description":"Generic javascript list filter","archived":false,"fork":false,"pushed_at":"2015-10-09T11:17:30.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-01T15:52:57.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://fetch.github.io/list-filter/example.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ngalongc/bug-bounty-reference","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetch.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":"2014-10-21T16:22:36.000Z","updated_at":"2020-02-06T14:32:19.000Z","dependencies_parsed_at":"2022-08-20T22:10:26.487Z","dependency_job_id":null,"html_url":"https://github.com/fetch/list-filter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fetch/list-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Flist-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Flist-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Flist-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Flist-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetch","download_url":"https://codeload.github.com/fetch/list-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Flist-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275220150,"owners_count":25426005,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-08T12:10:58.500Z","updated_at":"2025-09-15T07:08:30.744Z","avatar_url":"https://github.com/fetch.png","language":"JavaScript","readme":"List Filter\n==================\n\nSimple list filter.\n\nThis plugin adds a class `hidden` to the items that doesn't match the criteria.\n\n## Compatibility\n\nShould work in IE8 and up. (not tested yet).\n\n## Example\n\n```html\n\u003cp\u003e\n  \u003cinput type=\"text\" name=\"seach\" value=\"\" class=\"js-search\" placeholder=\"Search\"\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003cul class=\"js-list\"\u003e\n    \u003cli\u003eLorem ipsum\u003c/li\u003e\n    \u003cli\u003eIpsum dolore\u003c/li\u003e\n    \u003cli\u003eDolore sit\u003c/li\u003e\n    \u003cli\u003eSit amet\u003c/li\u003e\n    \u003cli\u003eAmet lorem\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/p\u003e\n\n\u003cscript src=\"src/list-filter.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nnew ListFilter(document.querySelector('.js-search'), document.querySelector('.js-list'));\n\u003c/script\u003e\n```\n\n## Custom search function\n\nIt is possible to use a custom search function. For example the excellent [Fuzzysearch](https://github.com/bevacqua/fuzzysearch):\n\nThis function is called with the the input value, and should return a function that accepts the content of the list item.\n\n```js\nnew ListFilter(document.querySelector('.js-search'), document.querySelector('.js-list'), {\n  search: function(needle) {\n    needle = needle.toLowerCase();\n    return function(haystack) {\n      return fuzzysearch(needle, haystack.toLowerCase());\n    };\n  }\n});\n```\n\n## Known issues\n\n`element.textContent` / `element.innerText` are not generally available, so search results may differ depending on the browser being used.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch%2Flist-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetch%2Flist-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch%2Flist-filter/lists"}