parse-domain
Advanced tools
Changelog
7.0.0 (2022-01-23)
Changelog
6.0.0 (2022-01-23)
await import("parse-domain")
. If you're still using Node 12, you may need to update it to the latest 12.x version.Changelog
5.0.0 (2022-01-23)
TextEncoder
constructor which should be available in all modern engines
(see https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder). The strict validation mode (which is the default) will also be a little bit more strict since it will now also check for hyphens at the beginning or end of a domain label. It also requires top-level domain names not to be all-numeric.