smart-linkify-core
v1.0.0
Published
Core library for converting URLs in text to clickable links
Maintainers
Readme
@smart-linkify/core
Core library for converting URLs in text to clickable links.
Installation
npm install @smart-linkify/coreUsage
import { linkify, presets } from '@smart-linkify/core';
// Basic usage
const html = linkify("Visit https://example.com");
// With options
const customHtml = linkify("Check www.example.com", {
color: '#0066cc',
target: '_self',
className: 'custom-link',
maxLength: 30
});
// Using presets
const socialHtml = linkify(text, presets.social);API
See the main README for full documentation.
License
MIT
