Links recognition library with FULL unicode support for detecting high-quality link patterns in plain text
Overall
score
97%
You are building a content moderation system that processes large volumes of user-generated text comments. The system needs to detect links in comments for safety analysis. Comments are often very similar (spam, repeated content), and the same text may be checked multiple times during processing pipelines.
Your task is to build a performance-optimized link detection module that efficiently handles repeated link detection operations on text content.
Your module should accept text strings and detect whether they contain any linkifiable content. The system will:
The module must be optimized for performance when:
Your module should provide:
Provides link detection and recognition functionality.
Input:
Text: "Check out example.com for more info"
Text: "No links here just plain text"Expected Behavior:
Test File: link-detector.test.js
Input:
Text: "Visit https://github.com/user/repo for details"
Process the same text 100 timesExpected Behavior:
Test File: link-detector.test.js
Input:
Text: "Contact us at support@example.com or visit www.example.com"Expected Behavior:
Test File: link-detector.test.js
Install with Tessl CLI
npx tessl i tessl/npm-linkify-itdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10