domain-from-partial-url
Turn a URL, no matter how incomplete, into its domain name
Installation
npm install domain-from-partial-url
Usage
The module exports a single function which will take a vaguely URL-like thing and spit out a domain. For example:
var domainFromPartialUrl = ; ; // example.com; // example.com; // example.com; // example.com
License
LGPL 3.0+
Author
AJ Jordan alex@strugee.net