Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: document querystring behavior for arrays and unassigned parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal authored and bnoordhuis committed Aug 30, 2011
1 parent fe4b742 commit 8039086
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/api/querystring.markdown
Expand Up @@ -10,13 +10,13 @@ Optionally override the default separator and assignment characters.

Example:

querystring.stringify({foo: 'bar'})
querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' })
// returns
'foo=bar'
'foo=bar&baz=qux&baz=quux&corge='

querystring.stringify({foo: 'bar', baz: 'bob'}, ';', ':')
querystring.stringify({foo: 'bar', baz: 'qux'}, ';', ':')
// returns
'foo:bar;baz:bob'
'foo:bar;baz:qux'

### querystring.parse(str, sep='&', eq='=')

Expand All @@ -25,9 +25,9 @@ Optionally override the default separator and assignment characters.

Example:

querystring.parse('a=b&b=c')
querystring.parse('foo=bar&baz=qux&baz=quux&corge')
// returns
{ a: 'b', b: 'c' }
{ foo: 'bar', baz: ['qux', 'quux'], corge: '' }

### querystring.escape

Expand Down

0 comments on commit 8039086

Please sign in to comment.