UNPKG

@scalar/api-client

Version:

the open source API testing client

19 lines (18 loc) 369 B
import { isPostmanCollection as o } from "./is-postman-collection.js"; const r = (t) => { if (!o(t)) return null; try { const n = JSON.parse(t); return { type: "json", title: n.info?.name || "Postman Collection", version: n.info?.version || "1.0" }; } catch { return null; } }; export { r as getPostmanDocumentDetails };