{"id":16472059,"url":"https://github.com/mikeibberson/with-location","last_synced_at":"2026-01-26T09:32:33.466Z","repository":{"id":42962190,"uuid":"226966363","full_name":"MikeIbberson/with-location","owner":"MikeIbberson","description":"@reach/router location HOC component","archived":false,"fork":false,"pushed_at":"2023-01-07T04:26:57.000Z","size":1766,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T23:12:01.146Z","etag":null,"topics":["higher-order-component","reach-router","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/with-location","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/MikeIbberson.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":"2019-12-09T20:58:01.000Z","updated_at":"2021-02-05T03:12:04.000Z","dependencies_parsed_at":"2023-02-06T11:46:34.467Z","dependency_job_id":null,"html_url":"https://github.com/MikeIbberson/with-location","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MikeIbberson/with-location","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeIbberson%2Fwith-location","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeIbberson%2Fwith-location/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeIbberson%2Fwith-location/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeIbberson%2Fwith-location/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MikeIbberson","download_url":"https://codeload.github.com/MikeIbberson/with-location/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeIbberson%2Fwith-location/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28772912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T08:38:24.014Z","status":"ssl_error","status_checked_at":"2026-01-26T08:38:22.080Z","response_time":59,"last_error":"SSL_read: 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":["higher-order-component","reach-router","react"],"created_at":"2024-10-11T12:16:03.565Z","updated_at":"2026-01-26T09:32:33.452Z","avatar_url":"https://github.com/MikeIbberson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1\u003e🗺️ with-location\u003c/h1\u003e\n\u003cp\u003e\n\u003cimg  src=\"https://github.com/MikeIbberson/with-location/workflows/Node%20CI/badge.svg\"  alt=\"Status\" /\u003e\n\u003ca href='https://coveralls.io/github/MikeIbberson/with-location?branch=master'\u003e\u003cimg src='https://coveralls.io/repos/github/MikeIbberson/with-location/badge.svg?branch=master' alt='Coverage Status' /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.codacy.com/manual/MikeIbberson/with-location?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=MikeIbberson/with-location\u0026amp;utm_campaign=Badge_Grade\"\u003e\u003cimg src=\"https://api.codacy.com/project/badge/Grade/770dd0b0d4f74a32921400c0504f8f33\"/\u003e\u003c/a\u003e\n\u003cimg src='https://bettercodehub.com/edge/badge/MikeIbberson/with-location?branch=master'\u003e\n\u003c/p\u003e \n\n\u003cp\u003eCustom Provider and HOC components for \u003ca href=\"https://github.com/reach/router\"\u003e@reach/router\u003c/a\u003e\u003c/p\u003e\n\n\u003ch2\u003eAvailable injected/inherited props\u003c/h2\u003e\n\n| Name           | Descriptions                                                                    | Args                 |\n| -------------- | ------------------------------------------------------------------------------- | -------------------- |\n| `getFrom`      | Get query value as string or object (will return a merged object)               | `object` or `string` |\n| `pushTo`       | Add a new value to the query string                                             | `any`                |\n| `clearByName`  | Create a curried callback for clear-style UI elements                           | `fn` =\u003e `event`      |\n| `handleSearch` | Create a submit callback for handling search inputs (will delete paged queries) | `fn` =\u003e `event`      |\n| `getAll`       | Returns an object of all params in play                                         |                      |\n\n\u003ch2\u003eExample\u003c/h2\u003e\n\n```Javascript\nimport React from 'react';\nimport { withLocation, LocationProvider } from 'with-location';\n\nconst AsHoc = withLocation((props) =\u003e {\n  // props now includes the location decorators\n  return null;\n});\n\nconst AsComponent = (props) =\u003e (\n  \u003cLocationProvider\u003e\n    {(utils) =\u003e {\n      // utils now includes the location decorators\n      return null;\n    }}\n  \u003c/LocationProvider\u003e\n);\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeibberson%2Fwith-location","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeibberson%2Fwith-location","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeibberson%2Fwith-location/lists"}