MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / qs

Function qs

packages/utilities/src/url.ts:23–33  ·  view source on GitHub ↗
(params: any)

Source from the content-addressed store, hash-verified

21
22/** this function will parse an object into query string params */
23export const qs = (params: any) => {
24 return Object.entries(params)
25 .filter(([key, value]) => !!key && !!value)
26 .map(
27 ([key, value]) =>
28 `${key}=${encodeURIComponent(
29 (Array.isArray(value) ? value.join() : value) as string
30 )}`
31 )
32 .join('&');
33};
34
35export function cleanUpUrl(reqUrl?: string) {
36 if (!reqUrl) return;

Callers 15

ApiClientClass · 0.90
inbound.tsFile · 0.90
getChannelMethod · 0.90
getChannelIntegrationMethod · 0.90
getThreadMethod · 0.90
findMessageMethod · 0.90
deleteMessageMethod · 0.90
findUserMethod · 0.90
CreateRouterFunction · 0.90
discordApiFunction · 0.90
ssrFunction · 0.90
fetchConversationsTypedFunction · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected