Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (36 sloc) 1.86 kB
c04af1f @tj Initial commit
authored
1 # node-querystring
2
2b9796e @tj readme typo
authored
3 query string parser for node 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
c04af1f @tj Initial commit
authored
31 ## License
32
33 (The MIT License)
34
35 Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
36
37 Permission is hereby granted, free of charge, to any person obtaining
38 a copy of this software and associated documentation files (the
39 'Software'), to deal in the Software without restriction, including
40 without limitation the rights to use, copy, modify, merge, publish,
41 distribute, sublicense, and/or sell copies of the Software, and to
42 permit persons to whom the Software is furnished to do so, subject to
43 the following conditions:
44
45 The above copyright notice and this permission notice shall be
46 included in all copies or substantial portions of the Software.
47
48 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.