{"id":15015969,"url":"https://github.com/zestia/ember-wrap-urls","last_synced_at":"2025-10-05T20:01:52.953Z","repository":{"id":6199698,"uuid":"55050503","full_name":"zestia/ember-wrap-urls","owner":"zestia","description":":link: Automatically turns URLs into Hyperlinks for user-generated-content","archived":false,"fork":false,"pushed_at":"2024-11-08T21:51:03.000Z","size":5706,"stargazers_count":7,"open_issues_count":7,"forks_count":4,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-26T04:34:26.663Z","etag":null,"topics":["ember","hyperlinks","urls","user-generated-content"],"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/zestia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2016-03-30T09:30:43.000Z","updated_at":"2024-11-08T21:51:07.000Z","dependencies_parsed_at":"2023-02-18T13:35:19.751Z","dependency_job_id":"fb540ce6-694b-4afe-a6b4-d402a8ad28c2","html_url":"https://github.com/zestia/ember-wrap-urls","commit_stats":{"total_commits":292,"total_committers":5,"mean_commits":58.4,"dds":0.4931506849315068,"last_synced_commit":"7e0c549e95cf40cdfbffa1298c008dee987defd8"},"previous_names":["amk221/ember-wrap-urls"],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fember-wrap-urls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fember-wrap-urls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fember-wrap-urls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fember-wrap-urls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zestia","download_url":"https://codeload.github.com/zestia/ember-wrap-urls/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248545988,"owners_count":21122243,"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":["ember","hyperlinks","urls","user-generated-content"],"created_at":"2024-09-24T19:48:13.563Z","updated_at":"2025-10-05T20:01:52.948Z","avatar_url":"https://github.com/zestia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @zestia/ember-wrap-urls\n\n\u003c!-- [![Ember Observer][ember-observer-badge]][ember-observer-url] --\u003e\n\u003c!-- [![GitHub Actions][github-actions-badge]][github-actions-url] --\u003e\n\n[npm-badge]: https://img.shields.io/npm/v/@zestia/ember-wrap-urls.svg\n[npm-badge-url]: https://www.npmjs.com/package/@zestia/ember-wrap-urls\n[github-actions-badge]: https://github.com/zestia/ember-wrap-urls/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/zestia/ember-wrap-urls/actions\n[ember-observer-badge]: https://emberobserver.com/badges/-zestia-ember-wrap-urls.svg\n[ember-observer-url]: https://emberobserver.com/addons/@zestia/ember-wrap-urls\n\nThis Ember addon takes some text, which may or may not contain URLs and renders the text and each URL as an Ember component.\n\n## Installation\n\n```\nember install @zestia/ember-wrap-urls\n```\n\nAdd the following to `~/.npmrc` to pull @zestia scoped packages from Github instead of NPM.\n\n```\n@zestia:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=\u003cYOUR_GH_TOKEN\u003e\n```\n\n## Demo\n\nhttps://zestia.github.io/ember-wrap-urls\n\n## Example\n\nGiven the following:\n\n```hbs\n\u003cWrapUrls @text='Check out my link: http://example.com' /\u003e\n```\n\nWill render:\n\n```hbs\nCheck out my link \u003cspan class='wrapped-url'\u003ehttp://example.com\u003c/span\u003e\n```\n\n## `WrapUrls`\n\n### Arguments\n\n#### `@text`\n\nRequired. The text within which to find URLs.\n\n#### `@Url`\n\nOptional. The component used to display each URL discovered within `@text`. Defaults to `wrap-urls/url`. You can also set it to `wrap-urls/link`, or a component of your choice.\n\n#### `@pattern`\n\nOptional. The regular expression used to find URLs in the `@text`. You may wish to set this to match mailto links for example.\n\n### API\n\nWhen a URL is found, and a component is rendered in its place, that component will have this API available to it in the template as an argument `@url`.\n\n#### `string`\n\nThe URL that this component should render.\n\n#### `start`\n\nThe position in the `@text` where the URL starts.\n\n#### `end`\n\nThe position in the `@text` where the URL ends.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestia%2Fember-wrap-urls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzestia%2Fember-wrap-urls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestia%2Fember-wrap-urls/lists"}