{"id":18358823,"url":"https://github.com/uppercod/r-match","last_synced_at":"2025-04-10T03:02:25.729Z","repository":{"id":113251411,"uuid":"128083319","full_name":"UpperCod/r-match","owner":"UpperCod","description":"📙 It will take route parameters in a simple and predictable way","archived":false,"fork":false,"pushed_at":"2018-04-04T15:38:01.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T08:47:54.326Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UpperCod.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-04T15:34:09.000Z","updated_at":"2018-04-04T15:38:02.000Z","dependencies_parsed_at":"2023-07-09T18:00:27.848Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/r-match","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"8e55c9221851d909a6bef6ae43a317eb7f9c459f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fr-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fr-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fr-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fr-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/r-match/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239036132,"owners_count":19571443,"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":[],"created_at":"2024-11-05T22:19:37.270Z","updated_at":"2025-02-15T18:29:55.795Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# r-path\n\nThis class creates an object that teaches with 2 important properties:\n\n* path  : this property shows the path of the route, divided into an array\n* query : this property shows the query of the route, divided into an object\n\n## Match-path::match\n\nThe match method of the **Match-route** instance allows you to execute the source route as a route template,\nbased on the following parameters:\n\n* `{param}` : **param** will be the name of the **mandatory parameter** stored in the match return\n* `{param?}` : **param** will be the name of the **optional parameter** stored in the match return\n* `{...param}` : **param** will be the name of the **group parameter** stored in the match return\n\nsi la comparación no cumple con el template de ruta este retorna falso\n\n### Match-path::match, Example\n\n```javascript\n\nimport Route from \"r-path\";\n\nlet route = new Route('/path1/{subpath}')\n\n   console.log(route.match('/path1/path2')) // {subpath : 'path2'}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fr-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fr-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fr-match/lists"}