프로젝트
GitHub에서 보기
alexcorvi/anchorme.js
소개
텍스트에서 링크, URL, 이메일 주소를 감지해 클릭 가능한 HTML 앵커 링크로 변환하는 작고 빠르며 효율적인 기능丰富한 JavaScript 라이브러리입니다.
웹 및 앱 개발What you can do
- It's Highly sensitive with the least false positives.
- It validates URLs and Emails against full IANA list.
- Validates port numbers (if present).
- Validates IP octet numbers (if present).
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAnchorme.js
Getting Started, Documentations, Demos and more
Tiny, fast, efficient, feature rich Javascript library to detect links / URLs / Emails in text and convert them to clickable HTML anchor links.
Main features
- Sensitivity:
- It's Highly sensitive with the least false positives.
- It validates URLs and Emails against full IANA list.
- Validates port numbers (if present).
- Validates IP octet numbers (if present).
- Works on non latin alphabets URLs.
- Robustness:
- Skips HTML, so it doesn't break your HTML if it had a URL as an attribute for an element, or a link that is already inside an anchor.
- Links with or without protocols.
- Works with IPs, FTPs, Emails and files.
- Can detect parenthesis and quotation marks as part of the URL or as a surrounding to the URL.
- Easily extensible with your own code (e.g. for hashtags and mentions).
- Fast: Performance is one of the main things that were kept in mind while writing this library.
- It's incredibly fast since 99% of all the heavy lifting is based on a single optimized regular expression.
- Processing H.G. Wells novel, the time machine, took only 2.2 milliseconds on my machine.
- This library is also a lot faster than other alternatives (linkify & autolinker). Link to benchmark
- Light Weight: Although it's a feature rich library with a full IANA list included, it's only 9KB when minified and GZipped.
관련 프로젝트 살펴보기
불러오는 중…