UNPKG

linkify-element

Version:

Browser DOM element interface for linkifyjs

34 lines (22 loc) 841 B
linkify-element === [![npm version](https://badge.fury.io/js/linkify-element.svg)](https://www.npmjs.com/package/linkify-element) [Linkify](https://linkify.js.org/) DOM Element Interface. Use `linkify-element` to detect URLs, email addresses and more within native HTML elements and replace them with anchor tags. Note that `linkify-element` is included with `linkify-jquery`, so you do not have to install it if you are using `linkify-jquery`. ## Installation Install from the command line with NPM ``` npm install linkifyjs linkify-element ``` Import into your JavaScript with `require` ```js const linkifyElement = require('linkify-element'); ``` or with ES modules ```js import linkifyElement from 'linkify-element'; ``` ## Usage [Read the full documentation](https://linkify.js.org/docs/linkify-element.html). ## License MIT