MCPcopy Index your code
hub / github.com/massCodeIO/massCode / isPostmanCollection

Function isPostmanCollection

src/main/http/import/postman.ts:53–60  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

51}
52
53function isPostmanCollection(value: unknown): value is UnknownRecord {
54 if (!isRecord(value) || !isRecord(value.info)) {
55 return false
56 }
57
58 const schema = asString(value.info.schema).toLowerCase()
59 return schema.includes('postman') && Array.isArray(value.item)
60}
61
62function isPostmanEnvironment(value: unknown): value is UnknownRecord {
63 return (

Callers 1

parsePostmanFilesFunction · 0.85

Calls 2

isRecordFunction · 0.70
asStringFunction · 0.70

Tested by

no test coverage detected