{"id":25508985,"url":"https://github.com/fabionmoraes/queryparamsuri","last_synced_at":"2025-10-03T12:48:52.034Z","repository":{"id":65479545,"uuid":"452444198","full_name":"fabionmoraes/queryparamsuri","owner":"fabionmoraes","description":"Filtro de tabela de pesquisa retorno URL","archived":false,"fork":false,"pushed_at":"2022-01-31T13:26:23.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T20:55:45.072Z","etag":null,"topics":["angularjs","paramaters","params","query","reactjs","vuejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/queryparamsuri","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/fabionmoraes.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":"2022-01-26T21:18:42.000Z","updated_at":"2022-01-30T16:46:53.000Z","dependencies_parsed_at":"2023-01-25T18:31:23.854Z","dependency_job_id":null,"html_url":"https://github.com/fabionmoraes/queryparamsuri","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabionmoraes/queryparamsuri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabionmoraes%2Fqueryparamsuri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabionmoraes%2Fqueryparamsuri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabionmoraes%2Fqueryparamsuri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabionmoraes%2Fqueryparamsuri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabionmoraes","download_url":"https://codeload.github.com/fabionmoraes/queryparamsuri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabionmoraes%2Fqueryparamsuri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266393153,"owners_count":23922315,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["angularjs","paramaters","params","query","reactjs","vuejs"],"created_at":"2025-02-19T08:31:49.860Z","updated_at":"2025-10-03T12:48:46.990Z","avatar_url":"https://github.com/fabionmoraes.png","language":"JavaScript","readme":"# queryparamsuri\n\n## O que a lib faz?\n\nA Lib faz filtro de pesquisa com retorno de url para tabelas\n\n## Por que devo usá-lo?\n\n- Retorna de uma forma mais fácil o filtro que você deseja com URL\n- Fácil de usar e prático\n\n## Instalação\n\n```bash\nyarn add queryparamsuri\n# or\nnpm i queryparamsuri --save\n```\n\n## Usage\n\nSuponha que temos uma querystring com um valor de:\n\n``ts\n\"?page=1\u0026limit=15\";\n\n```\n\n```\n\n## Utilização da Library\n\n```ts\nimport { queryParams, queryURI } from \"queryparamsuri\";\n\nconst App = () =\u003e {\n    const { searchURI, page, limit, query } = queryParams({\n        params: ['status', 'type'], // adiciona mais query da sua forma\n        limit: 20, // adiciona o limit de página na URI por default é 15\n        page: 1, // adiciona a paginação na URI por default é 1\n    });\n\n    //query = { status: '', type: '' } sendo retorno em object\n\n    useEffect(() =\u003e {\n        // ... info\n    }, [searchURI]); // eslint-disable-line\n\n    const handlePage = (value: any) =\u003e {\n        const params = queryURI({\n            name: 'page',\n            value,\n        });\n        //params = ?page=1\n        // add history.push(params)\n    };\n\n    const handleLimit = (event: SelectChangeEvent) =\u003e {\n        const params = queryURI({\n            name: 'limit',\n            value: event.target.value,\n        });\n        //params = ?page=1\u0026limit=15\n    }\n\n    const handleSearchObject = (values: any) =\u003e {\n        // example values {\n        //     status: 'ex',\n        //     type: 'ex2\n        // }\n\n        const params = queryObjectURI(values)\n\n        // params = ?status=ex\u0026type=ex2\n        // add history.push(params)\n    }\n\n    return(\n        //...info\n    )\n}\n```\n\n## Exemplo de uso\n\nUtilizando a library QueryParamsUri\nOpen [use-queryparamsuri-example](https://github.com/fabionmoraes/use-queryparamsuri-example)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabionmoraes%2Fqueryparamsuri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabionmoraes%2Fqueryparamsuri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabionmoraes%2Fqueryparamsuri/lists"}