/linkify-it-tlds

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

Primary LanguageTypeScriptMIT LicenseMIT

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