Current collected state Current
Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Check whether a domain (a string) is a second level domain
This module does a simple check to see whether a domain name, like some.site.com.au, is a second level domain. Second level domains are of the form '*.co.uk', or '*.com.au'.
npm i 2ldcheck -S
const isSecondLevelDomain = require('2ldcheck');
console.log(isSecondLevelDomain('domain.co.nz')); // prints true
console.log(isSecondLevelDomain('domain.com')); // prints false
This module is far from complete. Some 2LDs are still missing. Feel free to add them if you wan to. I'm happy to incorporate any changes.
Use this module at your own risk.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0deb2a80146ff2e83240e44cb68357bd98e928b72996f8f9bd11bedab0f83f39