Skip to content

Instantly share code, notes, and snippets.

@bpletzer
bpletzer / urlobject.js
Last active December 18, 2015 08:38 — forked from aymanfarhat/urlobject.js
function urlObject(url, options)
{
if ("" === url) return null;
default_options = {'url':url,'unescape':true,'convert_num':true};
if(typeof options !== "object")
options = default_options;
else
{