{"id":18018915,"url":"https://github.com/nfrasser/linkifyjs","last_synced_at":"2025-05-14T07:07:30.953Z","repository":{"id":8286645,"uuid":"9824723","full_name":"nfrasser/linkifyjs","owner":"nfrasser","description":"JavaScript plugin for finding links in plain-text and converting them to HTML \u003ca\u003e tags.","archived":false,"fork":false,"pushed_at":"2025-05-08T01:23:06.000Z","size":4649,"stargazers_count":1950,"open_issues_count":30,"forks_count":185,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-05-11T21:07:08.377Z","etag":null,"topics":["autolink","email","html","javascript","jquery-plugin","linkify","nodejs","react","url"],"latest_commit_sha":null,"homepage":"https://linkify.js.org","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/nfrasser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2013-05-02T23:28:54.000Z","updated_at":"2025-05-10T16:00:55.000Z","dependencies_parsed_at":"2023-02-15T11:46:01.961Z","dependency_job_id":"b8446a20-7a4c-4f46-9242-ebdf8a60dba6","html_url":"https://github.com/nfrasser/linkifyjs","commit_stats":{"total_commits":468,"total_committers":41,"mean_commits":"11.414634146341463","dds":"0.23931623931623935","last_synced_commit":"f1f9df13ac1a450049e252e1ea213b5b33b31620"},"previous_names":["soapbox/linkifyjs","nfrasser/linkifyjs","hypercontext/linkifyjs"],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfrasser%2Flinkifyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfrasser%2Flinkifyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfrasser%2Flinkifyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfrasser%2Flinkifyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfrasser","download_url":"https://codeload.github.com/nfrasser/linkifyjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253702190,"owners_count":21949934,"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":["autolink","email","html","javascript","jquery-plugin","linkify","nodejs","react","url"],"created_at":"2024-10-30T05:06:50.336Z","updated_at":"2025-05-14T07:07:30.915Z","avatar_url":"https://github.com/nfrasser.png","language":"JavaScript","readme":"# Linkify\n\n[![npm version](https://badge.fury.io/js/linkifyjs.svg)](https://www.npmjs.com/package/linkifyjs)\n[![CI](https://github.com/nfrasser/linkifyjs/actions/workflows/ci.yml/badge.svg)](https://github.com/nfrasser/linkifyjs/actions/workflows/ci.yml)\n[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=ZVZXNFhhQ044a01nQStVeWJXSng1b01MTWFpZlZRZVg1WnAvdE9aVE9LVT0tLWZpekx6ZHUrZ2E0dDRHMDZRMnJNQlE9PQ==--4d91db279fbd0475f8d8e4b221b5a4c1e0c6a76e)](https://automate.browserstack.com/public-build/ZVZXNFhhQ044a01nQStVeWJXSng1b01MTWFpZlZRZVg1WnAvdE9aVE9LVT0tLWZpekx6ZHUrZ2E0dDRHMDZRMnJNQlE9PQ==--4d91db279fbd0475f8d8e4b221b5a4c1e0c6a76e)\n[![Coverage Status](https://coveralls.io/repos/github/nfrasser/linkifyjs/badge.svg?branch=main)](https://coveralls.io/github/nfrasser/linkifyjs?branch=main)\n\nLinkify is a JavaScript plugin. Use Linkify to find links in plain-text and\nconvert them to HTML \u0026lt;a\u0026gt; tags. It automatically highlights URLs,\n#hashtags, @mentions and more.\n\n\u003e [!NOTE]\n\u003e In November 2024, linkifyjs was transferred from its previous namespace [Hypercontext](https://github.com/Hypercontext) to its primary maintainer [@nfrasser](https://github.com/nfrasser), as Hypercontext winds down operations.\n\n**Jump to**\n\n- [Features](#features)\n- [Demo](#demo)\n- [Installation and Usage](#installation-and-usage)\n- [Browser Support](#browser-support)\n- [Node.js Support](#nodejs-support)\n- [Downloads](#downloads)\n- [API Documentation](#api-documentation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Detect URLs and email addresses\n- #hashtag, @mention and #-ticket plugins\n- React and jQuery support\n- Multi-language and emoji support\n- Custom link plugins\n- Fast, accurate and small footprint (~20kB minified, ~11kB gzipped)\n- 99% test coverage\n- Compatible with all modern browsers (Internet Explorer 11 and up)\n\n## Demo\n\n[Launch demo](https://linkify.js.org/#demo)\n\n## Installation and Usage\n\n[View full documentation](https://linkify.js.org/docs/).\n\nDownload the [latest release](https://github.com/nfrasser/linkifyjs/releases) for direct use in the browser, or install via [NPM](https://www.npmjs.com/):\n\n```\nnpm install linkifyjs linkify-html\n```\n\n### Quick Start\n\nWhen developing in an environment with JavaScript module loader such as Webpack,\nuse an `import` statement:\n\n```js\nimport * as linkify from 'linkifyjs';\nimport linkifyHtml from 'linkify-html';\n```\n\nOr in Node.js with CommonJS modules\n\n```js\nconst linkify = require('linkifyjs');\nconst linkifyHtml = require('linkify-html');\n```\n\n**Note:** When linkify-ing text that does not contain HTML, install and use the\n`linkify-string` package instead of `linkify-html`. [Read more about Linkify's\ninterfaces](https://linkify.js.org/docs/interfaces.html).\n\n### Usage\n\n#### Example 1: Convert all links to \u0026lt;a\u0026gt; tags in the given string\n\n```js\nconst options = { defaultProtocol: 'https' };\nlinkifyHtml('Any links to github.com here? If not, contact test@example.com', options);\n```\n\nReturns the following string:\n\n```js\n'Any links to \u003ca href=\"https://github.com\"\u003egithub.com\u003c/a\u003e here? If not, contact \u003ca href=\"mailto:test@example.com\"\u003etest@example.com\u003c/a\u003e';\n```\n\nTo modify the resulting links with a target attribute, class name and more, [use\nthe available options](https://linkify.js.org/docs/options.html).\n\n#### Example 2: Find all links in the given string\n\n```js\nlinkify.find('Any links to github.com here? If not, contact test@example.com');\n```\n\nReturns the following array\n\n```js\n[\n  {\n    type: 'url',\n    value: 'github.com',\n    isLink: true,\n    href: 'http://github.com',\n    start: 13,\n    end: 23,\n  },\n  {\n    type: 'email',\n    value: 'test@example.com',\n    isLink: true,\n    href: 'mailto:test@example.com',\n    start: 46,\n    end: 62,\n  },\n];\n```\n\n#### Example 3: Check whether a string is a valid link:\n\nCheck if as string is a valid URL or email address:\n\n```js\nlinkify.test('github.com'); // true\n```\n\nCheck if a string is a valid email address:\n\n```js\nlinkify.test('github.com', 'email'); // false\nlinkify.test('noreply@github.com', 'email'); // true\n```\n\n### Usage with React, jQuery or the browser DOM\n\n[Read the interface documentation](https://linkify.js.org/docs/interfaces.html) to learn how to use linkify when working with a specific JavaScript environment such as React.\n\n### Plugins for @mentions, #hashtags and more\n\nBy default Linkify will only detect and highlight web URLs and e-mail addresses.\nPlugins for @mentions, #hashtags and more may be installed separately. [Read the\nplugin documentation](https://linkify.js.org/docs/plugins.html).\n\n## Browser Support\n\nLinkify natively supports all modern browsers. Older browsers supported with [Babel](https://babeljs.io).\n\n## Node.js Support\n\nLinkify is tested on Node.js 18 and up. Older Node.js versions are unofficially\nsupported.\n\n## Downloads\n\nDownload the [**latest release**](https://github.com/nfrasser/linkifyjs/releases)\n\n## API Documentation\n\nView full documentation at [linkify.js.org/docs](https://linkify.js.org/docs/)\n\n## Contributing\n\nCheck out [CONTRIBUTING.md](https://github.com/nfrasser/linkifyjs/blob/main/CONTRIBUTING.md).\n\n## License\n\nMIT\n\n## Authors\n\nLinkify is made with ❤️ by [@nfrasser](https://github.com/nfrasser)\n","funding_links":[],"categories":["JavaScript","html","react"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfrasser%2Flinkifyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfrasser%2Flinkifyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfrasser%2Flinkifyjs/lists"}