Skip to content

tatsuya/qs-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qs-extra

Build Status

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

About

Extended node.js querystring module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published