2.1.0 • Published 9 months ago

linkify-it-tlds v2.1.0

Weekly downloads
3
License
-
Repository
github
Last release
9 months ago

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

2.1.0

9 months ago

2.0.0

2 years ago

1.0.0

4 years ago