The extended node.js querystring APIs supporting add/remove parameters.
$ npm install qs-extra
Add key/val pair to query string.
var qs = require('qs-extra');
qs.add('color=red', 'size', 'small');
// => 'color=red&size=small'
Remove key's val from query string.
var qs = require('qs-extra');
qs.remove('color=red&size=small&size=large', 'size', 'large');
// => 'color=red&size=small'
General querystring APIs are also available through this module.
Install dev dependencies:
$ npm install -d
and execute:
$ make test