{"id":23024446,"url":"https://github.com/thipages/jca-filter","last_synced_at":"2025-04-02T19:41:01.499Z","repository":{"id":57279814,"uuid":"351522958","full_name":"thipages/jca-filter","owner":"thipages","description":"Facilitates filters creation for JS-CRUD-API","archived":false,"fork":false,"pushed_at":"2023-03-14T17:37:36.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T18:17:15.781Z","etag":null,"topics":["filter","helper","js-crud-api","php-crud-api"],"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/thipages.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":"2021-03-25T17:36:27.000Z","updated_at":"2023-03-14T15:21:41.000Z","dependencies_parsed_at":"2022-09-12T05:00:52.915Z","dependency_job_id":null,"html_url":"https://github.com/thipages/jca-filter","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/thipages%2Fjca-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fjca-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fjca-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fjca-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thipages","download_url":"https://codeload.github.com/thipages/jca-filter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246882871,"owners_count":20849329,"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":["filter","helper","js-crud-api","php-crud-api"],"created_at":"2024-12-15T13:18:43.379Z","updated_at":"2025-04-02T19:41:01.479Z","avatar_url":"https://github.com/thipages.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JCA-FILTER\n\nFacilitate filters creation for [JS-CRUD-API](https://github.com/thipages/js-crud-api)\n\n# Installation\n\n\n- via npm : _npm i jca_filter_\n\n```javascript\nimport jca_filter from 'jca_filter';\n// then\njca_filter(logic,otherConditions={});\n\n```\n- via HTML\n```html\n\u003cscript src=\"min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    // then\n    jca_filter(logic,otherConditions={});\n\u003c/script\u003e\n```\n## Example\n\n```javascript\nconst conditions=jca_filter(\n    \"('field1,eq,val1' OR 'field2,eq,val2') AND 'field3,eq,val3'\",\n    {order:'field1'}\n);\n/**\n * conditions content\n * \n * {\n *   filter: [\"field1,eq,val1\",\"field3,eq,val3\"],\n *   filter1: [\"field2,eq,val2\",\"field3,eq,val3\"],\n *   order: \"field1\"\n * }\n * \n*/\n```\n[see live example](https://thipages.github.io/jca-filter/)\n## LIMITATION\nonly OR and AND operators are available","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthipages%2Fjca-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthipages%2Fjca-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthipages%2Fjca-filter/lists"}