{"id":15678943,"url":"https://github.com/lambdalisue/deno-git-browse","last_synced_at":"2025-05-07T08:34:47.893Z","repository":{"id":182186825,"uuid":"662782130","full_name":"lambdalisue/deno-git-browse","owner":"lambdalisue","description":"🦕 Deno library and CLI to browse hosting service webpages of the repository","archived":false,"fork":false,"pushed_at":"2024-05-07T18:05:26.000Z","size":78,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T01:48:54.028Z","etag":null,"topics":["browse","deno","git","jsr"],"latest_commit_sha":null,"homepage":"https://jsr.io/@lambdalisue/git-browse","language":"TypeScript","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/lambdalisue.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":"2023-07-05T22:03:12.000Z","updated_at":"2024-07-10T09:51:31.000Z","dependencies_parsed_at":"2024-03-29T19:29:34.104Z","dependency_job_id":"2403d01a-3e16-4b2e-9e14-2885d72bac27","html_url":"https://github.com/lambdalisue/deno-git-browse","commit_stats":null,"previous_names":["lambdalisue/deno-git-browse"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-git-browse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-git-browse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-git-browse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-git-browse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdalisue","download_url":"https://codeload.github.com/lambdalisue/deno-git-browse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252843405,"owners_count":21812870,"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":["browse","deno","git","jsr"],"created_at":"2024-10-03T16:25:31.750Z","updated_at":"2025-05-07T08:34:47.855Z","avatar_url":"https://github.com/lambdalisue.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-browse\n\n[![JSR](https://jsr.io/badges/@lambdalisue/git-browse)](https://jsr.io/@lambdalisue/git-browse)\n[![denoland](https://img.shields.io/github/v/release/lambdalisue/deno-git-browse?logo=deno\u0026label=denoland)](https://deno.land/x/git_browse)\n[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/git_browse/mod.ts)\n[![Test](https://github.com/lambdalisue/deno-git-browse/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-git-browse/actions?query=workflow%3ATest)\n\nOpen the URL of the hosting service for the repository using the system web\nbrowser. The following hosting services are currently supported:\n\n- GitHub (https://github.com)\n- GitLab (https://gitlab.com)\n- Bitbucket (https://bitbucket.org)\n\nSee [./hosting_service/services](./hosting_service/services) and create a PR to\nsupport more hosting services.\n\n## Usage\n\n```console\n$ browse\n#=\u003e Opens a tree page of the current working directory in the HEAD commit of the current branch\n\n$ browse --path=README.md\n#=\u003e Opens a blob page of README.md in the HEAD commit of the current branch\n\n$ browse --path=README.md:10\n#=\u003e Opens a blob page of README.md with line 10 in the HEAD commit of the current branch\n\n$ browse --path=README.md:10:20\n#=\u003e Opens a blob page of README.md with lines 10 to 20 in the HEAD commit of the current branch\n\n$ browse --path=README.md my-awesome-branch\n#=\u003e Opens a blob page of README.md in the HEAD commit of my-awesome-branch branch\n\n$ browse --path=README.md fd28fa8\n#=\u003e Opens a blob page of README.md in the fd28fa8 commit\n\n$ browse --home\n#=\u003e Opens the home page of the repository\n\n$ browse --commit\n#=\u003e Opens a commit page of the current branch\n\n$ browse --commit my-awesome-branch\n#=\u003e Opens a commit page of my-awesome-branch branch\n\n$ browse --commit fd28fa8\n#=\u003e Opens a commit page of fd28fa8 commit\n\n$ browse --pr\n#=\u003e Opens a pull request page that contains the HEAD commit of the current branch\n\n$ browse --pr my-awesome-branch\n#=\u003e Opens a pull request page that contains the HEAD commit of my-awesome-branch branch\n\n$ browse --pr fd28fa8\n#=\u003e Opens a pull request page that contains the fd28fa8 commit\n```\n\n## Install\n\n### As a git alias\n\nAdd the followings to your `.gitconfig`\n\n```gitconfig\n[alias]\n  browse = \"!deno run --allow-net --allow-run --allow-read --allow-env jsr:@lambdalisue/git-browse/cli\"\n```\n\nThen use it as `git browse` like\n\n```console\n$ git browse --help\n```\n\n### As an isolated command\n\nUse `deno install` command to install the command.\n\n```console\n$ deno install --allow-net --allow-run --allow-read --allow-env -n browse jsr:@lambdalisue/git-browse/cli\n```\n\nThen use it as `browse` like\n\n```console\n$ browse --help\n```\n\n## License\n\nThe code follows MIT license written in [LICENSE](./LICENSE). Contributors need\nto agree that any modifications sent in this repository follow the license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-git-browse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdalisue%2Fdeno-git-browse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-git-browse/lists"}