Turn an object into an encoded URI parameter string.
$ npm install encodeuriparams
var encode = require('encodeuriparams');
var params = encode({
some: 'value'
});
params
will now equal some=value&
.
params = encode([{
string: 'value'
}, {
num: 123
}}]);
params
will now equal string=value&num=123&
.
params = encode({
boolVal: true
}, true);
params
will now equal ?boolVal=true&
.
- See: http://github.com/cobbdb/encodeuriparams
- License: MIT