/*!
 * @techmely/utils
 * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
 * MIT Licensed
 */


// src/parseQueryString/index.ts
function parseQueryString(url) {
  const params = [...new URLSearchParams(url.split("?")[1])];
  return params.reduce((acc, [key, value]) => {
    acc[key] = value;
    return acc;
  }, {});
}

export { parseQueryString };
