{"id":21004726,"url":"https://github.com/flaque/github-paths","last_synced_at":"2026-04-10T23:33:29.173Z","repository":{"id":80716004,"uuid":"144506754","full_name":"Flaque/github-paths","owner":"Flaque","description":"Generate Github urls for creating issues and editing/viewing source files","archived":false,"fork":false,"pushed_at":"2018-08-15T18:38:39.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T15:41:44.653Z","etag":null,"topics":["github","nodejs","url"],"latest_commit_sha":null,"homepage":"","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/Flaque.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-08-12T23:00:37.000Z","updated_at":"2018-09-26T22:51:59.000Z","dependencies_parsed_at":"2023-02-28T10:15:38.404Z","dependency_job_id":null,"html_url":"https://github.com/Flaque/github-paths","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Flaque/github-paths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgithub-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgithub-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgithub-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgithub-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaque","download_url":"https://codeload.github.com/Flaque/github-paths/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgithub-paths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254467,"owners_count":25956598,"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-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["github","nodejs","url"],"created_at":"2024-11-19T08:37:36.574Z","updated_at":"2025-10-04T01:47:03.505Z","avatar_url":"https://github.com/Flaque.png","language":"JavaScript","readme":"# github-paths 🗺\n\nA tiny node module for getting URLs to github.\n\n## Installation\n\n```\nnpm install --save github-paths\n```\n\nor with yarn\n\n```\nyarn add github-paths\n```\n\n## Usage\n\nCreating new issues:\n\n```js\nconst github = require(\"github-paths\");\n\n// https://github.com/flaque/blog/issues/new?title=my+title\u0026body=my+body+text\nconst href = github(\"flaque/blog\").issue(\"my title\", \"my body text\");\n```\n\nEditing files:\n\n```js\nconst github = require(\"github-paths\");\n\n// https://github.com/flaque/github-paths/edit/master/index.js\nconst href = github(\"flaque/github-paths\").edit(\"index.js\");\n```\n\nLinking to source:\n\n```js\nconst github = require(\"github-paths\");\n\n// https://github.com/Flaque/boop/blob/master/boop.go\nconst href = github(\"flaque/boop\").source(\"boop.go\");\n```\n\n## Why?\n\nGithub can be used in all sorts of ways that don't mesh with it's defined purpose.\n\nFor example, you can use github issues as a comment system if you'd like. Just put a URL in an href like this:\n\n```html\n\u003ca href=\"https://github.com/flaque/blog/issues/new\"\u003eMake a comment\u003c/a\u003e\n```\n\nBut did you know that github also supports `title` and `body` query params?\n\nTry clicking on this link:\n\n[https://github.com/flaque/blog/issues/new?title=plz+dont+submit\u0026body=hi+there](https://github.com/flaque/blog/issues/new?title=plz+dont+submit\u0026body=hi+there)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fgithub-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaque%2Fgithub-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fgithub-paths/lists"}