FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-querystring/examples.js at master · mal/node-querystring · GitHub
mal
/
node-querystring
Public
forked from
tj/node-querystring
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-querystring
/
examples.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (34 loc) · 1.1 KB
Breadcrumbs
node-querystring
/
examples.js
Copy path
File metadata and controls
51 lines (34 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* 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
)
;
Back
|
FazBrowse Home
|
New Git URL