1.0.5 • Published 4 years ago
get-query-params v1.0.5
get-query-params
DEPRECATED, use query-string
Usage
npm i get-query-params
import getQueryParams from 'get-query-params'
const params = getQueryParams(window.location.search)
// Returns a JS object
// If the url is http://example.com?foo=bar&baz=quux,
// return value is
{ foo: 'bar', baz: 'quux' }