linkifyjs
v4.2.0
Published
Find URLs, email addresses, #hashtags and @mentions in plain-text strings, then convert them into HTML <a> links.
Downloads
5,946,156
Maintainers
Readme
linkifyjs
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:
- HTML strings
- React component
- jQuery plugin
- DOM Elements
- Plain-text
- #hashtag plugin
- @mention plugin
- #ticket plugin
- IP address plugin
- Keyword plugin
Usage
License
MIT