UNPKG

@scalar/api-client

Version:

the open source API testing client

13 lines (12 loc) 309 B
import { convert as t } from "@scalar/postman-to-openapi"; const c = (o) => { try { return t(o); } catch (r) { const e = r instanceof Error ? r.message : "Unknown error"; throw new Error(`Failed to convert Postman collection to OpenAPI: ${e}`); } }; export { c as getOpenApiFromPostman };