Jump To

Linkify IP Address Plugin

Adds support for detecting IPv4 and IPv6 (limited) addresses.


Node.js module

Install from the command line with NPM

npm install linkifyjs linkify-plugin-ip
const linkify = require("linkifyjs");

or with ES6 modules

import * as linkify from "linkifyjs";
import "linkify-plugin-ip";

Browser globals

Download linkify and extract the contents into your website’s assets directory. Include the following scripts in your HTML:

<script src="linkify.js"></script>
<script src="linkify-plugin-ip.js"></script>


Once imported, works automatically with all linkify interfaces such as linkify-html:

linkifyHtml("No place like");

Returns the following string:

'No place like <a href=""></a>';