{"id":22411368,"url":"https://github.com/puse/decanat-router","last_synced_at":"2025-03-27T03:10:58.601Z","repository":{"id":18042392,"uuid":"21087197","full_name":"puse/decanat-router","owner":"puse","description":"Client-side router.","archived":false,"fork":false,"pushed_at":"2014-07-01T14:32:27.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T08:26:38.719Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puse.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":"2014-06-22T06:25:38.000Z","updated_at":"2020-07-28T22:49:05.000Z","dependencies_parsed_at":"2022-08-25T15:51:43.890Z","dependency_job_id":null,"html_url":"https://github.com/puse/decanat-router","commit_stats":null,"previous_names":["decanat/router","orinak/decanat-router"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puse%2Fdecanat-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puse%2Fdecanat-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puse%2Fdecanat-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puse%2Fdecanat-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puse","download_url":"https://codeload.github.com/puse/decanat-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245773178,"owners_count":20669719,"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-12-05T13:13:46.899Z","updated_at":"2025-03-27T03:10:58.580Z","avatar_url":"https://github.com/puse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Router](http://decanat.github.io/router/images/vane-s.png) decanat-router\n\nClient-side router.\n\n## Installation\n\nUsing [component](https://github.com/component/component):\n\n    $ component install decanat/router\n\nUsing [npm](http://npmjs.org/) for [browserify](http://browserify.org/):\n\n    $ npm install decanat-router\n\n## Usage\n\n```js\nvar Router = require('router');\n\nvar router = Router();\n\nrouter.route('/blog/:thread/')\n    .use(function(ctx, next){\n        console.log(ctx.params.thread); // thread id parsed from url\n        next()\n    });\n\nrouter.listen();\n```\n\n## Test\n\nRun unit tests:\n\n    $ make test\n\n## Forebears\n\n  - \u003chttps://github.com/visionmedia/page.js\u003e\n  - \u003chttps://github.com/ianstormtaylor/router\u003e\n\n## License\n\nThe MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuse%2Fdecanat-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuse%2Fdecanat-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuse%2Fdecanat-router/lists"}