{"id":16817157,"url":"https://github.com/phanan/vue-linkify","last_synced_at":"2025-03-17T03:31:40.870Z","repository":{"id":37561708,"uuid":"76541974","full_name":"phanan/vue-linkify","owner":"phanan","description":"A simple Vue directive to turn URL's and emails into clickable links","archived":false,"fork":false,"pushed_at":"2021-03-24T00:36:20.000Z","size":43,"stargazers_count":83,"open_issues_count":12,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T17:35:13.972Z","etag":null,"topics":["vue","vue-directive"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/phanan.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}},"created_at":"2016-12-15T08:54:57.000Z","updated_at":"2024-03-01T09:54:13.000Z","dependencies_parsed_at":"2022-08-27T13:54:31.125Z","dependency_job_id":null,"html_url":"https://github.com/phanan/vue-linkify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanan%2Fvue-linkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanan%2Fvue-linkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanan%2Fvue-linkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanan%2Fvue-linkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phanan","download_url":"https://codeload.github.com/phanan/vue-linkify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841207,"owners_count":20356443,"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":["vue","vue-directive"],"created_at":"2024-10-13T10:46:21.717Z","updated_at":"2025-03-17T03:31:40.627Z","avatar_url":"https://github.com/phanan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-linkify [![Build Status](https://travis-ci.org/phanan/vue-linkify.svg?branch=master)](https://travis-ci.org/phanan/vue-linkify)\n\n\u003e A simple Vue directive to turn URL's and emails into clickable links. Based on SoapBox's [Linkify](https://github.com/SoapBox/linkifyjs).\n\n## Install\n\nThis directive can be installed as a module:\n\n``` bash\n$ npm install vue-linkify\n```\n\nor, if you're not in a module environment, just include it as a `\u003cscript\u003e`.\n\n## Basic Usage\n\nIn a browser environment, you should now have a `v-linkified` directive set up for free. If you're in a module environment, just `import` and register it as you please:\n\n``` js\nimport linkify from 'vue-linkify'\n\nVue.directive('linkified', linkify)\n```\n\nAnd then you use it away:\n\n``` html\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cdiv v-html=\"raw\" v-linkified /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nexport default {\n  data () {\n    return {\n      raw: 'Hello from vuejs.org'\n    }\n  }\n}\n\u003c/script\u003e\n```\n\nThe above snippet will yield:\n\n``` html\nHello from \u003ca href=\"http://vuejs.org\" class=\"linkified\" target=\"_blank\"\u003evuejs.org\u003c/a\u003e\n```\n\n## ~~Advanced~~ Slightly Less Basic Usage\n\nYou can also pass an `options` argument, which takes an `Object`, into the directive to control its behavior. For example, modifying the above template into something like this:\n\n``` html\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cdiv v-html=\"raw\" v-linkified:options=\"{ className: 'foo' }\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\nwill yield a slightly different HTML:\n\n``` html\nHello from \u003ca href=\"http://vuejs.org\" class=\"foo\" target=\"_blank\"\u003evuejs.org\u003c/a\u003e\n```\n\nA list of available options is available [here](http://soapbox.github.io/linkifyjs/docs/options.html).\n\n## License\n\nMIT \u0026copy; [Phan An](http://phanan.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanan%2Fvue-linkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphanan%2Fvue-linkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanan%2Fvue-linkify/lists"}