0.1.2 • Published 2 years ago
moderm-query-params v0.1.2
Installation
npm install moderm-query-params
Usage
const { getQueryParams } from "moderm-query-params"
const params = getQueryParams<{ foo: string; a: string }>('foo=bar&a=b');
// This will use windows.location.search
const params = getQueryParams<{ foo: string; a: string }>();