{"id":18770829,"url":"https://github.com/gamote/goturl","last_synced_at":"2025-12-12T01:30:13.485Z","repository":{"id":213103070,"uuid":"733060504","full_name":"Gamote/goturl","owner":"Gamote","description":"The library that tries to do its best to extract urls from strings.","archived":false,"fork":false,"pushed_at":"2024-02-26T11:49:39.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T07:47:50.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Gamote.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":"2023-12-18T13:27:24.000Z","updated_at":"2023-12-18T13:28:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5c86e20-8b26-405c-8a81-6ecb3b4634be","html_url":"https://github.com/Gamote/goturl","commit_stats":null,"previous_names":["gamote/goturl"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fgoturl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fgoturl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fgoturl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fgoturl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gamote","download_url":"https://codeload.github.com/Gamote/goturl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239678015,"owners_count":19679181,"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-07T19:21:46.853Z","updated_at":"2025-12-12T01:30:13.433Z","avatar_url":"https://github.com/Gamote.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goturl\n\n[![NPM version](https://img.shields.io/npm/v/goturl.svg?style=flat)](https://www.npmjs.com/package/goturl)\n[![NPM downloads](https://img.shields.io/npm/dm/goturl.svg?style=flat)](https://www.npmjs.com/package/goturl)\n![Fastify](https://img.shields.io/badge/-Vitest-86b91a?style=flat\u0026logo=vitest\u0026logoColor=white)\n\n**goturl** - the library that tries to do its best to extract urls from strings.\n\n## Installation\n\n```bash\nyarn add goturl\n```\n\n## Usage\n\n```ts\nimport { extractUrl } from 'goturl';\n\nextractUrl(\"Visit https://example.com for more info\");\n// =\u003e https://example.com\n\nextractUrl(\"Website: another-one.com\");\n// =\u003e another-one.com\n\nextractUrl(\"Don't forget about this.com/thing?query=string\", { fallbackProtocol: 'https' });\n// =\u003e https://this.com/thing?query=string\n\nextractUrl(\"Check out our promotions: http://promotion.com http://promotion.com/real/offer\", { getLongestUrl: true });\n// =\u003e http://promotion.com/real/offer\n\nextractUrl(\"Quick reminder, check out our websitehttps://hurry.com/mistake\", { tryFixProtocol: true });\n// =\u003e https://hurry.com/mistake\n```\n\n## Testing\n\n```bash\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fgoturl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamote%2Fgoturl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fgoturl/lists"}