xurl

0.0.1 • Public • Published

xURL

Build Status

usage:

var xURL = require('xurl');
xURL('http://www.google.com:8080/index.html?qs#hash');
 
/* returns:
{
  "protocol": "http:",
  "host": "www.google.com:8080",
  "hostname": "www.google.com",
  "port": "8080",
  "pathname": "/index.html",
  "search": "?qs",
  "hash": "#hash",
  "href": "http://www.google.com:8080/index.html?qs#hash"
}
*/

Readme

Keywords

Package Sidebar

Install

npm i xurl

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • kolodny