parse-domain

v0.2.2
Splits an url into sub-domain, domain and effective top-level-domain
domain url sub-domain tld parse extract sanitize country top-level and 1 more...

test

mocha -R spec

build-regex

node lib/build/buildRegex.js

download-tld

curl https://publicsuffix.org/list/effective_tld_names.dat > lib/build/tld.txt

update-regex

npm run download-tld && npm run build-regex && npm run test

Metadata

Downloads

Maintainers