0.0.5 • Published 10 years ago

domain-parser v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

node-domain-parser

A simple domain parser, getting the domain name without subdomains.

Build Status

install

npm

npm install domain-parser

usage

var dp = require('domain-parser');

var result = dp('www.google.com.tw').domainName;
console.log(result);
// google.com.tw

result = dp('direct.jp-bank.japanpost.jp').domainName;
console.log(result);
// japanpost.jp

license

MIT