tldjs

v2.3.1
JavaScript API to work against complex domain names, subdomains and URIs.
tld sld domain browser uri url domain name subdomain public suffix and 1 more...

benchmark

node ./bin/benchmark.js

generate-changelog

github-changes -o oncletom -r 'tld.js' -n ${npm_package_version} --only-pulls --use-commit-body

lint

jshint --config .jshintrc lib/**/*.js

postinstall

node ./bin/postinstall.js

posttest

npm run lint && npm run test-browser

prepack

npm run build && npm run build-min

prepublish

npm run update

test

nyc mocha -R dot -r env-test

test-browser

testling

test-watch

mocha -R dot -r env-test --watch

update

node ./bin/update.js

version

npm run generate-changelog && git add CHANGELOG.md

prebuild

npm run update

build

browserify index.js --s tldjs > tld.js

prebuild-min

npm run update

build-min

browserify index.js --s tldjs | uglifyjs -c > tld.min.js
npm i tldjs

Metadata

  • MIT
  • >= 4
  • Thomas Parisot
  • released 2/18/2018

Downloads