0.0.6 • Published 2 years ago

2ldcheck v0.0.6

Weekly downloads
34
License
MIT
Repository
github
Last release
2 years ago

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.

0.0.6

2 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago