MCPcopy
hub / github.com/iptv-org/iptv / parse

Method parse

scripts/core/logParser.ts:8–13  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

6
7export class LogParser {
8 parse(content: string): LogItem[] {
9 if (!content) return []
10 const lines = content.split('\n')
11
12 return lines.map(line => (line ? JSON.parse(line) : null)).filter(l => l)
13 }
14}

Callers 9

createMethod · 0.95
createMethod · 0.95
createMethod · 0.95
createMethod · 0.95
test.tsFile · 0.45
edit.tsFile · 0.45
validate.tsFile · 0.45
format.tsFile · 0.45
contentFunction · 0.45

Calls

no outgoing calls

Tested by 1

contentFunction · 0.36