# url

Compare-URL generation for the supported repository platforms.

`createCompareUrl(options)` produces the platform-specific diff URL between two refs (tags, commits, or branches): `https://github.com/<owner>/<repo>/compare/<from>...<to>` for GitHub, the equivalent path for GitLab, Bitbucket, and Azure DevOps. [`CreateCompareUrlOptions`](https://www.hyperfrontend.dev/docs/libraries/versioning/repository/url/#api-CreateCompareUrlOptions) covers the typical inputs: repository config plus the from/to refs.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/versioning/repository/url/
This file: https://www.hyperfrontend.dev/docs/libraries/versioning/repository/url.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
