Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FromQueryStringOptions

Index

Properties

arraySyntax?: boolean

If true, then nested properties will be decoded by using [] syntax

default

false

example
// {foo: [1], bar: {bla: 2}}
fromQueryString('foo[]=1&bar[bla]=2', {arraySyntax: true});
convert?: boolean

If false, then all parsed values won't be converted from a string

default

true

example
// {foo: '1'}
fromQueryString('foo=1', {convert: false});
decode?: boolean

If false, then the passed string won't be decoded by using decodeURIComponent

default

true

separator?: string

Separator for nested properties

example
// {foo: {bar: 1}}
fromQueryString('foo_bar=1', {separator: '_'});