Skip to content

Comprehensive list of TLDs, sourced from ICANN, for linkify-it.

License

Notifications You must be signed in to change notification settings

fabiospampinato/linkify-it-tlds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linkify-it TLDs

Comprehensive list of TLDs, sourced from ICANN, for linkify-it.

This is basically the same as node-tls, but TLDs that are shorter than 3 characters are not listed as linkify-it uses a regex for matching them all. This improves performance slightly.

Install

npm install --save linkify-it-tlds

Usage

import linkify from 'linkify-it';
import tlds from 'linkify-it-tlds';

const instance = linkify ();

instance.tlds ( tlds, true ); // It's important to pass "true", as that ensures the default TLDs will be still supported, as this package doesn't provide them

License

MIT © Fabio Spampinato

About

Comprehensive list of TLDs, sourced from ICANN, for linkify-it.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published