node-url-ext

0.1.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i node-url-ext

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jerrywu