NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2188 most downloaded on npm
Library to work against complex domain names, subdomains and URIs.
Last release 7 days ago
27 Sep 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
828 releases · first in 2018
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Update upstream public suffix list #376 ([@github-actions[bot]](https://github.com/github-actions[bot]) @remusao)
tldts-experimental, tldts
Nothing published for this version
ci: remove 'released' plugin for auto (@remusao)
Nothing published for this version
chore(deps-dev): bump @ampproject/rollup-plugin-closure-compiler
Bumps @ampproject/rollup-plugin-closure-compiler from 0.18.1 to 0.19.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.16.0 to 0.18.1.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @types/node from 12.12.21 to 13.1.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.15.0 to 0.16.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.13.0 to 0.15.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.12.2 to 0.13.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.10.0 to 0.12.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps rollup-plugin-sourcemaps from 0.4.2 to 0.5.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.20.0 to 0.21.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #369 (@dependabot-preview[bot])
Bumps @types/jest from 24.9.1 to 25.1.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #361 (@dependabot-preview[bot])
Bumps @ampproject/rollup-plugin-closure-compiler from 0.19.1 to 0.20.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #347 (@dependabot-preview[bot])
Bumps ts-jest from 24.3.0 to 25.0.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #358 (@dependabot-preview[bot])
Bumps jest from 24.9.0 to 25.1.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #353 (@dependabot-preview[bot])
Bumps tslint from 5.20.1 to 6.0.0.
Signed-off-by: dependabot-preview[bot] support@dependabot.com #355 (@dependabot-preview[bot])
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
…and speed of parsing. Because it introduces some breaking changes in the API results (host renamed into hostname and deletion of the isValid attribute…
tldts-core, tldts-experimental, tldts
tldts-core, tldts-experimental, tldts
tldts-experimental, tldts
tldts-core, tldts-experimental, tldts
tldts-experimental, tldts
tldts-core, tldts-experimental, tldts
tldts-experimental, tldts
tldts-experimental, tldts
tldts-experimental, tldts
tldts-experimental, tldts
2019-12-25
2019-11-17
2019-10-14
extractHostname is false #256
2019-10-12
New optimizations #255
parse(...)indexOf and lastIndexOf in packed hashThese optimizations result in up to 20% faster invocations of parse(...)
and 40% faster invocations of getPublicSuffix(...)when using
tldts-experimental. This should also reduce memory pressure in cases where
specific methods are used (i.e.: all but parse(...)) since no intermediary
result object needs to be allocated.
2019-09-24
2019-09-16
2019-08-29
2019-07-26
2019-07-17
2019-07-03
lerna and yarn workspaces as a way to manage multiple packagestldts into two packages tldts and tldts-experimentaltldts-core which contains the building blocks2019-07-01
2019-06-21
2019-06-06
2019-05-29
2019-05-24
2019-05-23
2019-05-23
extractHostname: will now avoid lower-casing the result in some casesextractHostname: handles single or triple '/' after protocolextractHostname: has fast-path for validation of common protocols (e.g. https)isProbablyIpv4: performs first quick check on length of hostnameisProbablyIpv6: performs first quick check on length of hostnameisValidHostname: make use of charCodeAt instead of codePointAtlookupInTrie: makes use of Trie with more stable structure (faster)lookupInTrie: lazily allocate memory for resultsuffixLookup: uses fast-path for most common suffixes (massive speed-up)suffixLookup: does not allocate memory for result anymoresetDefaults: fast-path in case no argument was providedgetSubdomain: fast-path if subdomain is emptydetectIp allows to disable IP checkmixedInput allows to specify if we expect a mix of URLs and hostnames as
input. If only hostnames are expected then extractHostname can be set to
false to speed-up parsing. If only URLs are expected then mixedInputs
can be set to false. The mixedInputs is only a hint and will not
change the behavior of the library.validateHostname can be set to false to disable validation and
speed-up processing further.bin/ folder to TypeScripttldts cli which can be used to parse URLs2019-04-15
2019-03-29
2019-03-28
2019-03-10
2019-02-05
2019-01-29
2019-01-07
This Release introduces some more optimizations both in size of bundles,
memory usage and speed of parsing. Because it introduces some breaking
changes in the API results (host renamed into hostname and deletion
of the isValid attribute), as well as introducing a new experimental
backend (tldts-experimental bundle), this is a major version bump.
#16 Optimizations + comparison with other libraries (#16)
#13 Implement experimental probabilistic packed suffix structure (#13)
tldExists("google.google") README example (#83) (@oncletom)npm@2 (#80) (@oncletom)getPublicSuffix (@oncletom)cleanHostValue (@oncletom)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →