{"id":14973343,"url":"https://github.com/scottcorgan/angular-linkify","last_synced_at":"2025-04-10T01:12:20.181Z","repository":{"id":9311535,"uuid":"11152278","full_name":"scottcorgan/angular-linkify","owner":"scottcorgan","description":"Angular filter, directive, and service to linkify text.","archived":false,"fork":false,"pushed_at":"2022-02-07T21:11:05.000Z","size":28,"stargazers_count":82,"open_issues_count":11,"forks_count":29,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T01:12:15.113Z","etag":null,"topics":["angular","angular-2","linkify","linkify-text"],"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/scottcorgan.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}},"created_at":"2013-07-03T14:07:08.000Z","updated_at":"2019-10-24T00:42:40.000Z","dependencies_parsed_at":"2022-07-31T15:38:56.314Z","dependency_job_id":null,"html_url":"https://github.com/scottcorgan/angular-linkify","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottcorgan%2Fangular-linkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottcorgan%2Fangular-linkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottcorgan%2Fangular-linkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottcorgan%2Fangular-linkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottcorgan","download_url":"https://codeload.github.com/scottcorgan/angular-linkify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137890,"owners_count":21053775,"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":["angular","angular-2","linkify","linkify-text"],"created_at":"2024-09-24T13:48:35.034Z","updated_at":"2025-04-10T01:12:20.150Z","avatar_url":"https://github.com/scottcorgan.png","language":"JavaScript","readme":"# angular-linkify\n\nAngular filter, directive, and service to linkify text. As of **v0.3.0**, angular-linkify works for twitter/github mentions, twitter hashtags, and basic urls.\n\n## Install\n\nInstall via either [bower](http://bower.io/), [npm](https://www.npmjs.com/), CDN (jsDelivr) or downloaded files:\n\n* `bower install angular-linkify --save`\n* `npm install angular-linkify --save`\n* use [CDN file](https://www.jsdelivr.com/projects/angular.linkify)\n* download [angular-linkify.zip](https://github.com/scottcorgan/angular-linkify/zipball/master)\n\n\n\nInclude `angular-linkify.min.js` in your angular application\n\n```html\n\u003c!-- when using bower --\u003e\n\u003cscript src=\"bower_components/angular-linkify/angular-linkify.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using npm --\u003e\n\u003cscript src=\"node_modules/angular-linkify/angular-linkify.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using cdn file --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/angular-linkify@2.0.0/angular-linkify.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using downloaded files --\u003e\n\u003cscript src=\"angular-linkify.min.js\"\u003e\u003c/script\u003e\n```\n\n\n## Usage\n\nInject module into your application\n\n```javascript\nangular.module('YourApp', ['linkify']);\n```\n\nUse as a [AngularJS Directive](http://docs.angularjs.org/guide/directive)\n\n```html\n\u003c!-- As a directive, no twitter --\u003e\n\u003cdiv ng-bind=\"someModel\" linkify\u003e\u003c/div\u003e\n\n\u003c!-- As a directive, with twitter parsing --\u003e\n\u003cdiv ng-bind=\"someModel\" linkify=\"twitter\"\u003e\u003c/div\u003e\n```\n\nInject as a [AngularJS Service](http://docs.angularjs.org/guide/dev_guide.services)\n\n```javascript\n// Injected into controller\nangular.module('someModule').controller('SomeCtrl', function ($scope, linkify, $sce) {\n  var text = \"@scottcorgan and http://github.com\";\n  \n  // Twitter\n  // Must use $sce.trustAsHtml() as of Angular 1.2.x\n  $scope.text = $sce.trustAsHtml(linkify.twitter(text));\n  // outputs: \u003ca href=\"https://twitter.com/scottcorgan\" target=\"_blank\"\u003escottcorgan\u003c/a\u003e and \u003ca href=\"http://github.com\" target=\"_blank\"\u003ehttp://github.com\u003c/a\u003e\n  \n  // Github\n  // Must use $sce.trustAsHtml() as of Angular 1.2.x\n  $scope.text = $sce.trustAsHtml(linkify.github(text));\n  // outputs: \u003ca href=\"https://github.com/scottcorgan\" target=\"_blank\"\u003escottcorgan\u003c/a\u003e and \u003ca href=\"http://github.com\" target=\"_blank\"\u003ehttp://github.com\u003c/a\u003e\n  \n});\n\n```\n\n## Build\n\n```\ngrunt\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottcorgan%2Fangular-linkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottcorgan%2Fangular-linkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottcorgan%2Fangular-linkify/lists"}