MCPcopy Create free account
hub / github.com/chainjet/platform / getQueryParam

Function getQueryParam

libs/common/src/utils/url.utils.ts:1–3  ·  view source on GitHub ↗
(url: string, param: string)

Source from the content-addressed store, hash-verified

1export function getQueryParam(url: string, param: string): string | null {
2 return new URL(url.replace('/#/', '/')).searchParams.get(param)
3}

Callers 2

beforeOperationRunMethod · 0.90
url.utils.spec.tsFile · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected