Sha256: 6b81abc59c91c1c11b40520c4944f4925cbec6cab9528d785fd9d002d98bbbdb

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

/**
 * Module dependencies.
 */

var qs = require('./');

var obj = qs.parse('foo');
console.log(obj)

var obj = qs.parse('foo=bar=baz');
console.log(obj)

var obj = qs.parse('users[]');
console.log(obj)

var obj = qs.parse('name=tj&email=tj@vision-media.ca');
console.log(obj)

var obj = qs.parse('users[]=tj&users[]=tobi&users[]=jane');
console.log(obj)

var obj = qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
console.log(obj)

var obj = qs.parse('users[][name][first]=tj&users[][name][last]=holowaychuk');
console.log(obj)

var obj = qs.parse('a=a&a=b&a=c');
console.log(obj)

var obj = qs.parse('user[tj]=tj&user[tj]=TJ');
console.log(obj)

var obj = qs.parse('user[names]=tj&user[names]=TJ&user[names]=Tyler');
console.log(obj)

var obj = qs.parse('user[name][first]=tj&user[name][first]=TJ');
console.log(obj)

var obj = qs.parse('user[0]=tj&user[1]=TJ');
console.log(obj)

var obj = qs.parse('user[0]=tj&user[]=TJ');
console.log(obj)

var obj = qs.parse('user[0]=tj&user[foo]=TJ');
console.log(obj)

var str = qs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }});
console.log(str);

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/express/node_modules/qs/examples.js
vulcan-0.8.2 server/node_modules/express/node_modules/qs/examples.js
vulcan-0.8.1 server/node_modules/express/node_modules/qs/examples.js
iron_worker_ng-0.10.1 iron_worker_examples/binary/phantom-nodejs/node_modules/phantom/node_modules/express/node_modules/connect/node_modules/qs/examples.js
vulcan-0.8.0 server/node_modules/express/node_modules/qs/examples.js
vulcan-0.7.2 server/node_modules/express/node_modules/qs/examples.js
vulcan-0.7.1 server/node_modules/express/node_modules/qs/examples.js
vulcan-0.7.0 server/node_modules/express/node_modules/qs/examples.js