UNPKG

@scalar/api-client

Version:

the open source API testing client

21 lines (20 loc) 416 B
import { generateCustomId as i } from "./generate-client-options.js"; const a = (n, e) => n.length ? [ { label: "Code Examples", options: n.map((t) => { const l = i(t), o = t.label || t.lang || l, r = t.lang || "plaintext"; return { id: l, lang: r, title: o, label: o, clientKey: "custom" }; }) }, ...e ] : e; export { a as getClients };