jQuery.unparam plugin

I have just created a simple jQuery plugin to add the opposite functionality to the jQuery.param function. It will turn a set of url parameters back in to an object. Here’s the usage at the moment.

it("should get basic query string vars from full url", function() {
    expect(jQuery.unparam('http://davetayls.me/?foo=one&bar=two'))
    .toEqual({
        foo: "one",
        bar: "two"
    });
});
it("should get basic query string vars from just query params", function() {
    expect(jQuery.unparam('foo=one&bar=two'))
    .toEqual({
        foo: "one",
        bar: "two"
    });
});

You can get hold of it on the Github repo

Work with me

Dave is a cohesive team member, widely popular with his colleagues and always inspiring quality, exploration and innovation. One of the true ‘greats’ we’ve had the pleasure to work with

I believe in community, in inspiration and creativity. I believe it's an inspired team and a laser focus on the user's experiece that will produce the best results. I want to help frontend teams live inspired, be productive and scale better.