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.
npm install --save linkify-it-tlds
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
MIT © Fabio Spampinato