Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (38 sloc) 1.922 kb
c04af1f @tj Initial commit
authored
1 # node-querystring
2
8f82281 @tj docs
authored
3 query string parser for node and the browser supporting nesting, as it was removed from `0.3.x`, so this library provides the previous and commonly desired behaviour (and twice as fast). Used by [express](http://expressjs.com), [connect](http://senchalabs.github.com/connect) and others.
c04af1f @tj Initial commit
authored
4
b062ac9 @tj examples
authored
5 ## Installation
6
dba4b42 @tj Release 0.0.1
authored
7 $ npm install qs
b062ac9 @tj examples
authored
8
9 ## Examples
10
3059db3 @tj examples
authored
11 ```js
12 var qs = require('qs');
13
14 qs.parse('user[name][first]=Tobi&user[email]=tobi@learnboost.com');
15 // => { user: { name: { first: 'Tobi' }, email: 'tobi@learnboost.com' } }
16
17 qs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }})
18 // => user[name]=Tobi&user[email]=tobi%40learnboost.com
19 ```
b062ac9 @tj examples
authored
20
ca9316d @bantic Update Readme to describe how to run tests
bantic authored
21 ## Testing
22
cd29e4a @tj docs
authored
23 Install dev dependencies:
ca9316d @bantic Update Readme to describe how to run tests
bantic authored
24
cd29e4a @tj docs
authored
25 $ npm install -d
ca9316d @bantic Update Readme to describe how to run tests
bantic authored
26
27 and execute:
28
29 $ make test
30
7557416 @tj docs
authored
31 browser:
32
33 $ open test/browser/index.html
34
c04af1f @tj Initial commit
authored
35 ## License
36
37 (The MIT License)
38
39 Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
40
41 Permission is hereby granted, free of charge, to any person obtaining
42 a copy of this software and associated documentation files (the
43 'Software'), to deal in the Software without restriction, including
44 without limitation the rights to use, copy, modify, merge, publish,
45 distribute, sublicense, and/or sell copies of the Software, and to
46 permit persons to whom the Software is furnished to do so, subject to
47 the following conditions:
48
49 The above copyright notice and this permission notice shall be
50 included in all copies or substantial portions of the Software.
51
52 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
53 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
56 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
57 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
58 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.