Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

linkifyjs

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Issues
File Explorer

Advanced tools

linkifyjs

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

    4.0.0

Version published
Maintainers
1
Weekly downloads
599,627
increased by12.66%

Weekly downloads

Changelog

Source

v4.0.0

BREAKING CHANGES

  • Removed deprecated linkifyjs/string, linkifyjs/html, linkifyjs/plugins/* packages. Use linkify-string, linkify-html and linkify-plugin-* instead.
  • Refactored scanner internals break custom link plugins created with Linkify v3
  • Links that begin with mailto: now have type url instead of email
  • Drop official IE 11 support

Added

  • linkify-plugin-ip plugin for detecting IPv4 and IPv6 addresses
  • linkify-plugin-keyword plugin for detecting arbitrary keywords
  • linkify.find() function accepts an options argument for output formatting
  • New render option to override link rendering
  • Second optionalSlashSlash argument for registerCustomProtocol to allow links that don't require // after scheme:
  • Link token methods toFormattedString(options), toFormattedHref(options) and toFormattedObject(options) that accept a linkify.Options object
  • More granular scanner tokens for improved plugin flexibility
  • linkify-react: New as property (alias for tagName)

Fixed

  • Improved link detection with mixed languages
  • Consistent option availability across interfaces (including truncate)
  • linkify-html: Improved HTML entity parsing

Readme

Source

linkifyjs

Core Linkify 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

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

Keywords

FAQs

What is linkifyjs?

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

Is linkifyjs popular?

The npm package linkifyjs receives a total of 487,865 weekly downloads. As such, linkifyjs popularity was classified as popular.

Is linkifyjs well maintained?

We found that linkifyjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 19 Sep 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc