0.0.11 • Published 2 years ago

effective-domain-name-parser v0.0.11

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

devDependency Status

Domain name parser

This is very simple library for Node to parse a domain name into Top Level Domain / Second Level Domain / Subdomains based on the list of effective Top Level Domains maintained by Mozilla.

Install with npm install effective-domain-name-parser.

var domainNameParser = require("effective-domain-name-parser");
console.log(domainNameParser.parse('www.example.com'));
// { tld: "com", sld: "example", "subdomain": "www" }

console.log(domainNameParser.parse('www.example.co.uk'));
// { tld: "co.uk", sld: "example", "subdomain": "www" }

Updating list of effective TLDs

The list of TLDs used by the library is built with node buildPLS.js. This package should get updated each time the list is.

0.0.11

2 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

8 years ago

0.0.2

11 years ago

0.0.1

11 years ago