node-parse-url
Take a URL string, and return an object. Extend from native url module
Installation
Global
npm install node-parse-url
Usage
var parseUrl = ; var url = ; console; // output // { // protocol: 'https:',// host: 'github',// port: null,// hostname: 'github.com',// path: '/aredo',// subdomain: null,// tld: 'com',// domain: 'github.com' // }
License
(The MIT License)