MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isJsonContentType

Function isJsonContentType

sdk/src/tools/read-url.ts:252–256  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

250}
251
252function isJsonContentType(contentType: string): boolean {
253 return (
254 contentType.includes('application/json') || contentType.includes('+json')
255 )
256}
257
258function isMarkdownContentType(contentType: string): boolean {
259 return contentType.includes('text/markdown')

Callers 1

extractTextByContentTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected