MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getParserById

Method getParserById

packages/parser/src/sniffer.ts:162–165  ·  view source on GitHub ↗

* 根据格式 ID 获取解析器

(formatId: string)

Source from the content-addressed store, hash-verified

160 * 根据格式 ID 获取解析器
161 */
162 getParserById(formatId: string): Parser | null {
163 const module = this.formats.find((m) => m.feature.id === formatId)
164 return module?.parser || null
165 }
166
167 /**
168 * 获取所有支持的格式

Callers 1

parseFileWithFormatFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected