qs-extra
extended querystring module supporting add/remove parameters
Last updated 6 years ago by tatsuyaoiw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install qs-extra 
SYNC missed versions from official npm registry.

qs-extra

The extended node.js querystring APIs supporting add/remove parameters.

Installation

$ npm install qs-extra

API

.add(str, key, val)

Add key/val pair to query string.

var qs = require('qs-extra');
qs.add('color=red', 'size', 'small');
// => 'color=red&size=small'

.remove(str, key, val)

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.

Testing

Install dev dependencies:

$ npm install -d

and execute:

$ make test

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |