Catalog npm
Back to packageRELEASE DETAILS

0.0.3

npm

2ldcheck

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

Published12 Mar 2017
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
underscore
Environment
{
  "local_name": "underscore",
  "alias": false,
  "peer_metadata": null
}
^1.8.3runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "9102f99859d36b0083371449a4dae114bba00418",
  "tarball": "https://registry.npmjs.org/2ldcheck/-/2ldcheck-0.0.3.tgz",
  "integrity": "sha512-wIq1/ivt8xXegOqE7gKT83SRsNqdvZm4aoOasjaIqvN0lgIj8xolUilSPDNcc55cS8ufK0yMAE9BQEw33vLjpA==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIBrPhraHQ+Djo04qfCSzrb84rjzTfCH7vYK5Cdms8J2VAiAkVyLh1PQB9WbOpnJBM/3DCd7yhhspSamMEN8x4G20hQ=="
    }
  ]
}

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_version:b7a4e353ff90cafb3fa12b8c148a5f2f6f4e314fc31f31eff389c4b2d7adc982

Other collected versions

0.0.613 Dec0.0.512 Mar0.0.412 Mar0.0.210 Mar0.0.110 MarView all collected versions →