UNPKG

@scalar/api-client

Version:

the open source API testing client

12 lines (11 loc) 263 B
const n = (o) => { try { const s = JSON.parse(o), t = s.info?._postman_id !== void 0, a = s.info?.schema && new URL(s.info.schema).host === "schema.getpostman.com"; return t && a; } catch { return !1; } }; export { n as isPostmanCollection };