Home Reference Source

terrier-repo/bodyparser/getQueryString.ts

/**
 * Seperates the query string from the path
 * @param path The full pathname from request URL
 * @return {string} The query string from the path
 */
export function getQueryString(path: string) {
  return path.split("?")[1];
}