querylist
v0.0.1
Published
Encode and decode query strings preserving order.
Downloads
7
Readme
Encode and decode query strings preserving order.
var encoded = querylist.encode([ { name: 'a', value: '1' }, { name: 'a', value: '2' } ])
assert.equal(encoded, '?a=1&a=2')
var decoded = querylist.decode(encoded)
assert.deepEqual(decoded, [ { name: 'a', value: '1' }, { name: 'a', value: '2' } ], 'decode')