0.1.1 • Published 8 years ago

url-ext v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

url-ext

Core url lib extension. NPM version

Installation

$ npm install --save url-ext

Usage

var urlExt = require('url-ext');
var url = 'http://www.xxx.com:8080/search?q=jerrywu#hello';
var hostnameWithProtocol = urlExt.parseHostnameWithProtocol(url);
console.log('hostnameWithProtocol: %s', hostnameWithProtocol); // http://www.xxx.com

License

The MIT License.