linkifyjs

Find URLs, email addresses, #hashtags and @mentions in plain-text strings, then convert them into HTML <a> links.

MIT 55 个版本
安装
npm install linkifyjs
yarn add linkifyjs
pnpm add linkifyjs
bun add linkifyjs
README

linkifyjs

npm version

Core Linkify JavaScript library. Use Linkify and its related packages to detect URLs, email addresses and more in plain-text strings and convert them to HTML <a> anchor tags.

Installation

Install from the command line with NPM

npm install linkifyjs

Import into your JavaScript with require

const linkify = require('linkifyjs');

or with ES modules

import * as linkify from 'linkifyjs';

Separate packages are available for each of the following features:

Usage

Read the full documentation.

License

MIT

版本列表
4.3.3 2026-05-13
4.3.2 2025-07-25
4.3.1 2025-05-08
4.3.0 2025-05-07
4.2.0 2024-12-04
4.1.4 2024-11-19
4.1.3 2023-11-22
4.1.2 2023-11-09
4.1.1 2023-03-25
4.1.0 2023-01-04
4.0.2 2022-10-02
4.0.1 2022-09-29
4.0.0-beta.6 2022-09-18
4.0.0-beta.5 2022-04-23
4.0.0-beta.4 2022-02-04
4.0.0-beta.3 2022-01-30
4.0.0-beta.2 2022-01-30
4.0.0-beta.1 2022-01-21
4.0.0 2022-09-19
3.0.5 2022-01-03
3.0.4 2021-11-24
3.0.3 2021-10-14
3.0.2 2021-10-11
3.0.1 2021-09-16
3.0.0-beta.3 2021-03-11
3.0.0-beta.2 2021-03-11
3.0.0-beta.1 2021-03-08
3.0.0 2021-09-15
2.1.9 2020-01-30
2.1.8 2019-01-29
2.1.7 2018-09-05
2.1.6 2018-03-03
2.1.5 2017-09-20
2.1.4 2017-01-05
2.1.3 2016-09-30
2.1.2 2016-09-27
2.1.1 2016-09-21
2.1.0 2016-09-02
2.0.5 2016-07-17
2.0.4 2016-07-02
2.0.3 2016-05-21
2.0.2 2016-05-16
2.0.1 2016-05-16
2.0.0-beta.9 2016-01-29
2.0.0-beta.8 2016-01-22
2.0.0-beta.7 2015-12-15
2.0.0-beta.6 2015-12-15
2.0.0-beta.5 2015-11-20
2.0.0-beta.4 2015-06-27
2.0.0-beta.3 2015-06-19
2.0.0-beta.2 2015-06-16
2.0.0-beta.1 2015-06-15
2.0.0-alpha.4 2015-06-07
2.0.0-alpha.3 2015-03-16
2.0.0 2016-04-18