{"id":18314347,"url":"https://github.com/agrublev/fc-hash-router","last_synced_at":"2025-04-05T19:34:35.813Z","repository":{"id":42834937,"uuid":"264785548","full_name":"agrublev/fc-hash-router","owner":"agrublev","description":"The most amazing hash router of all time ","archived":false,"fork":false,"pushed_at":"2024-06-28T13:00:41.000Z","size":485,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T09:06:51.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fc-hash-router.surge.sh","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/agrublev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-18T00:39:35.000Z","updated_at":"2023-03-27T11:06:21.000Z","dependencies_parsed_at":"2024-11-05T16:52:41.006Z","dependency_job_id":null,"html_url":"https://github.com/agrublev/fc-hash-router","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/agrublev%2Ffc-hash-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-hash-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-hash-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-hash-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrublev","download_url":"https://codeload.github.com/agrublev/fc-hash-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393387,"owners_count":20931807,"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-05T16:32:07.669Z","updated_at":"2025-04-05T19:34:35.543Z","avatar_url":"https://github.com/agrublev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to fc-hash-router 👋\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000\" /\u003e\n\u003c/p\u003e\n\n\u003e The godliest of routers!\n\n### ✨ [Demo](https://fc-hash-router.surge.sh)\n\n**OR SANDBOX IT**\n\nhttps://codesandbox.io/s/fc-hash-router-example-3z0bf\n\n[![Edit fc-hash-router-example](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/fc-hash-router-example-3z0bf?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n## Install\n\n```sh\nyarn add fc-hash-router -D\n```\n\n## Usage\n\n```js\nimport { HashRouter } from \"fc-hash-router\";\n\nHashRouter.route(`products/:firstVar/:someVar/bobby/#num/random`, (data) =\u003e {\n  \tconsole.info(data);\n});\n\n// Or cooler\nHashRouter.route(`products/:firstVar/:someVar/bobby/#num/random`, ({firstVar,someVar,num}) =\u003e {\n  \tconsole.info({firstVar,someVar,num});\n});\t\n```\n\n### Then use normal anchor like this\n\n```html\n\u003ca href=\"#/products/12/22/bobby/123/random\"\u003eTEST\u003c/a\u003e\n```\n\n### OR With Javascript\n\n```js\nHashRouter.navigate(`/products/12/22/bobby/123/random`);\n```\n\n### To unregister a route\n\n```js\nHashRouter.routeOff(`new/#userId`);\n```\n\nTHAT EASY!\n\n## Author\n\n👤 **Angel Grablev**\n\n-   Website: https://freedcamp.com\n-   Github: [@agrublev](https://github.com/agrublev)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n---\n\nMade by Freedcamp with ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-hash-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrublev%2Ffc-hash-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-hash-router/lists"}