UNPKG

@scalar/api-client

Version:

the open source API testing client

10 lines (9 loc) 257 B
import { isHttpMethod as e } from "@scalar/helpers/http/is-http-method"; function i(o, r) { const t = r?.params[o]; if (typeof t == "string") return o === "method" ? t && e(t) ? t : void 0 : decodeURIComponent(t); } export { i as getRouteParam };