0.0.5 • Published 9 months ago

@prodvair/url-query-params v0.0.5

Weekly downloads
-
License
CC-BY-4.0
Repository
github
Last release
9 months ago

URL - Query Params

Parsing and building url GET params with alias

const qp = new URLQueryParams(<queryAlias>)

get query params

qp.queryParamsParse(http://test.test?a=b&c[]=1)
// { a: b, c: [1] }

build query params

qp.queryParamsBuild({ a: b, c: [1] })
// a=b&c[]=1

Default alias:

{
    filters: 'f',
    wheres: 'w',
    orders: 'o',
    groupe: 'g',
    column: 'col',
    condition: 'con',
    value: 'val',
    option: 'opt',
}

@prodvair

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago