Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 348 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 348 Bytes

@xesam/url-compat

URL and URLSearchParams Compat.

Usage

npm install @xesam/url-compat
const createURL = require('@xesam/url-compat');
const urlObj = createURL('https://admin:root@ahost:443/apath?k=v');

urlObj.hash = 'ahash';
console.log(urlObj.href) // https://admin:root@ahost:443/apath?k=v#ahash