linkify-it-tlds
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i linkify-it-tlds

Weekly Downloads

14

Version

2.1.0

License

none

Unpacked Size

26.2 kB

Total Files

9

Last publish

Collaborators

  • fabiospampinato