A robust JavaScript library for detecting links and emails in plain text with full Unicode and international domain support.
linkify-it is a JavaScript library that identifies and parses links, emails, and custom patterns in plain text. It solves the problem of accurately detecting URLs and emails in user-generated content, supporting Unicode characters, international domains, and extensible rules for specialized use cases like social media mentions.
Developers building applications that process plain text, such as markdown parsers, chat platforms, comment systems, or content editors where automatic link detection is required.
Developers choose linkify-it for its reliability, full Unicode support, and extensibility—allowing custom protocols and validation rules without sacrificing performance or accuracy in diverse text environments.
Links recognition library with full unicode support
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Handles astral characters and international text seamlessly, as emphasized in the README for accurate pattern detection across diverse languages.
Allows adding custom protocols and validators, enabling support for mentions like Twitter handles through the API's validate and normalize functions.
Detects URLs without explicit schemes and emails without prefixes, with options like fuzzyIP and termination characters to tailor behavior.
Supports non-Latin characters and custom TLDs via the .tlds() method, making it suitable for global applications without false positives.
Lacks security features for link sanitization, requiring additional libraries or code to prevent XSS attacks when displaying detected links.
Adding custom patterns like social media mentions involves writing regex validators and normalizers, as shown in the Twitter example, which can be error-prone and time-consuming.
The extensive Unicode processing and fuzzy matching may introduce latency in real-time applications compared to simpler, less accurate detection libraries.