You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
3 years ago
|
linkifyjs
|
||
|
===
|
||
|
|
||
|
Core [Linkify](https://linkify.js.org/) JavaScript library. Use Linkify and its
|
||
|
related packages to find links in plain-text and convert them to HTML <a> tags
|
||
|
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
Install from the command line with NPM
|
||
|
|
||
|
```
|
||
|
npm install linkifyjs
|
||
|
```
|
||
|
|
||
|
Import into your JavaScript with `require`
|
||
|
```js
|
||
|
const linkify = require('linkifyjs');
|
||
|
```
|
||
|
or with ES modules
|
||
|
|
||
|
```js
|
||
|
import * as linkify from 'linkifyjs';
|
||
|
```
|
||
|
|
||
|
Separate packages are available for each of the following features:
|
||
|
- [HTML strings](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-html)
|
||
|
- [React component](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-react)
|
||
|
- [jQuery plugin](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-jquery)
|
||
|
- [DOM Elements](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-element)
|
||
|
- [Plain-text](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-string)
|
||
|
- [#hashtag plugin](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-plugin-hashtag)
|
||
|
- [@mention plugin](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-plugin-mention)
|
||
|
- [#ticket plugin](https://github.com/Hypercontext/linkifyjs/tree/main/packages/linkify-plugin-ticket)
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
[Read the full documentation](https://linkify.js.org/docs/linkifyjs.html).
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|