Catalog npm
Back to packageRELEASE DETAILS

0.0.5

npm

2ldcheck

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

Published12 Mar 2019
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
{
  "integrity": "sha512-cvZASAoquagh2EQn/GnjlvfI/qD+HSvrs5kwiG/7snlVPB9/Y975RAggbO3vKn0m4MLMasnkVvSUhr4WrBvL2A==",
  "shasum": "3e665c98168cbb53c9e5c72725e6f032f8e5b130",
  "tarball": "https://registry.npmjs.org/2ldcheck/-/2ldcheck-0.0.5.tgz",
  "fileCount": 13,
  "unpackedSize": 2983,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch046CRA9TVsSAnZWagAAjLYP/2D9sjInMO9tj7XJIwCr\nWrSw0kc8myH7SlJEu5WNRTlh58QM1eGseCIA+a/tEtK4X6+4VpAeIF9JVX32\nWv7dmlyoTgaurYteQVPRA62+Laf2r9KeHZ1FVFnWcdb5NofONLER9ksUV2xm\nmfNh/3xVZzbohlr60ISujzBD10U7EcKcfd6ejCYJeFURMQwUo+JZ+eK8LisB\nNgn+LXFOMOoi2oe554Gb6/MI5qJ0dpGwYvgETfnNvnIkT4SSDeclLgjDbEU5\nG4yVm36pt7gQudrX6JmdISMwsK4EJnR/ZM4YLlNEemglLGfS4qLAwe9dro94\nel0EW8JvAYViEqNmMsZaVmEK5N1QKgMCKDgAcmrCGCwWgBPYdJATWljch1T+\nSkuHV4TA9nUzTleMaVReFSg0gownOb6K5uRuXvRZloj50/NbiwvTdZ0/Hj/r\n2q1biJJIvAMz6Ga2xePWILCSh/nNzfYrOQQHSSy2bFz+hyxT9Uf+HZ0Olzqa\nLGIbRtdDk1VC8opjcmeD6uFvT4ear8FNV5Nolc+l3HOZgDYdHHdvvWQ2o1CH\nZ13AzFqLrcREvhSwFVPJeVWxFemTV756YN+lH7Aee+/60AspwiY8ghsXH7O3\nZgVgIruZ3ar/o8iN63ckW+U+iMzz5bvkHxXhWJubSwHvYH2I0+9l2cxkPN2n\n01M3\r\n=ohCs\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGlSnKXqlDH2asNSFq+6USyD9BzxoNbURfwTzRwACXAzAiBTpekTdZSiy2jN4IdneEw3rHIsa1hVHslXWlvrU/oYcg=="
    }
  ]
}

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:efe744edf5d38fc7187ec63d2155d67558a6dc7ea47e82fc1f1ef6f9516df7f2

Other collected versions

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