Catalog npm
PACKAGE EXPLORERView in registry

2ldcheck

npm

Check whether a domain (a string) is a second level domain

Versions collected6
Direct dependencies1From release 0.0.6
Last observed20 Oct, 19:14 UTC

README

Current package documentation

2ldcheck

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'.

Usage

Install

npm i 2ldcheck -S

Use

const isSecondLevelDomain = require('2ldcheck');

console.log(isSecondLevelDomain('domain.co.nz'));   // prints true
console.log(isSecondLevelDomain('domain.com'));     // prints false

Warning

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 6

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.6Registry latest13 Dec 20211
0.0.512 Mar 20191
0.0.412 Mar 20191
0.0.312 Mar 20171
0.0.210 Mar 20171
0.0.110 Mar 20171

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
sandyman/2ldcheck

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0deb2a80146ff2e83240e44cb68357bd98e928b72996f8f9bd11bedab0f83f39