url.min.js
v10.0.0-1
Published
Unit Resource Locator
Downloads
1
Readme
url.min.js
const url = require ("url.min.js")
console.log (url.parse ("/path"))
console.log (url.parse ("//host/path"))
console.log (url.parse ("//domain.com/path"))
console.log (url.parse ("protocol://sub.domain.com/path#tag"))
console.log (url.parse ("protocol://user:[email protected]:3000/path#tag"))
console.log (url.parse ("protocol://user:[email protected]:3000/path?que=ry#tag"))
console.log (url.parse ("protocol://user:[email protected]:3000/path?que=ry#tag", {strict: true}))
console.log (url.parse ("http://user:[email protected]:3000/path?que=ry#tag", {strict: true}))