Parse url query to JSON object or stringify JSON object to url query.
import { queries } from '@mochen/yuumi';
Parse url query to JSON object.
interface Query { u?: string; x?: string; } const parsedQuery = queries.parse<Query>("u=123");
Stringify JSON object to url query.
queries.stringify({ a: '1', b: '2', }); // a=1&b=2
JSON object
Generated using TypeDoc
Queries
Parse url query to JSON object or stringify JSON object to url query.
import { queries } from '@mochen/yuumi';