MCPcopy Create free account

hub / github.com/josdejong/jsonrepair / functions

Functions161 in github.com/josdejong/jsonrepair

↓ 427 callersFunctionjsonrepair
(text: string)
src/regular/jsonrepair.ts:70
↓ 39 callersFunctionassertRepair
(text: string)
src/index.test.ts:877
↓ 16 callersFunctionisDigit
(char: string)
src/utils/stringUtils.ts:20
↓ 16 callersFunctionparseWhitespaceAndSkipComments
(skipNewline = true)
src/regular/jsonrepair.ts:130
↓ 15 callersFunctionisWhitespace
(text: Text, index: number)
src/utils/stringUtils.ts:80
↓ 14 callersFunctionparseWhitespaceAndSkipComments
(skipNewline = true)
src/streaming/core.ts:492
↓ 11 callersFunctioninsertBeforeLastWhitespace
(text: string, textToInsert: string)
src/utils/stringUtils.ts:171
↓ 10 callersFunctionisDelimiter
(char: string)
src/utils/stringUtils.ts:31
↓ 10 callersFunctionparseCharacter
(char: string)
src/streaming/core.ts:589
↓ 9 callersFunctionisQuote
(char: string)
src/utils/stringUtils.ts:118
↓ 9 callersFunctiontestInputBuffer
(text: string)
src/streaming/buffer/InputBuffer.test.ts:95
↓ 7 callersFunctionjsonrepairTransform
(options?: JsonRepairTransformOptions)
src/streaming/stream.ts:9
↓ 7 callersFunctiontestOutputBuffer
(options?: { chunkSize: number; bufferSize: number })
src/streaming/buffer/OutputBuffer.test.ts:85
↓ 6 callersFunctioncountOccurrences
(text: string, char: string)
src/utils/stringUtils.ts:268
↓ 6 callersFunctionisFunctionNameChar
(char: string)
src/utils/stringUtils.ts:41
↓ 6 callersFunctionisStartOfValue
(char: string)
src/utils/stringUtils.ts:61
↓ 6 callersFunctionparseKeyword
(name: string, value: string)
src/regular/jsonrepair.ts:815
↓ 6 callersFunctionparseKeyword
(name: string, value: string)
src/streaming/core.ts:1009
↓ 6 callersFunctionrun
(command)
test-lib/lib.test.js:47
↓ 6 callersFunctionskipCharacter
(char: string)
src/streaming/core.ts:599
↓ 5 callersFunctionensure
(index: number)
src/streaming/buffer/InputBuffer.ts:20
↓ 5 callersFunctionparseCharacter
(char: string)
src/regular/jsonrepair.ts:229
↓ 5 callersFunctionparseValue
()
src/regular/jsonrepair.ts:115
↓ 5 callersFunctionparseValue
()
src/streaming/core.ts:187
↓ 5 callersFunctionrun
(command)
test-lib/cli.test.js:78
↓ 5 callersFunctionstripLastOccurrence
( text: string, textToStrip: string, stripRemainingText = false )
src/utils/stringUtils.ts:160
↓ 4 callersFunctionflushChunks
(minSize = bufferSize)
src/streaming/buffer/OutputBuffer.ts:30
↓ 4 callersFunctionisControlCharacter
(char: string)
src/utils/stringUtils.ts:68
↓ 4 callersFunctionisFunctionNameCharStart
(char: string)
src/utils/stringUtils.ts:35
↓ 4 callersFunctionisUnquotedStringDelimiter
(char: string)
src/utils/stringUtils.ts:57
↓ 4 callersFunctionjsonrepairCore
({ onData, bufferSize = 65536, chunkSize = 65536 }: JsonRepairCoreOptions)
src/streaming/core.ts:64
↓ 4 callersFunctionmatchHtmlEntity
(fragment: string)
src/utils/stringUtils.ts:220
↓ 4 callersFunctionskipCharacter
(char: string)
src/regular/jsonrepair.ts:239
↓ 4 callersFunctionskipEllipsis
* Skip ellipsis like "[1,2,3,...]" or "[1,2,3,...,9]" or "[...,7,8,9]" * or a similar construct in objects.
src/streaming/core.ts:616
↓ 4 callersFunctionthrowUnexpectedCharacter
()
src/streaming/core.ts:1091
↓ 3 callersFunctioncreateCore
(options?: { chunkSize: number; bufferSize: number })
src/streaming/core.test.ts:45
↓ 3 callersFunctionisSingleQuoteLike
(char: string)
src/utils/stringUtils.ts:143
↓ 3 callersFunctionparseRepairTrailingComma
()
src/streaming/core.ts:308
↓ 3 callersFunctionparseString
* Parse a string enclosed by double quotes "...". Can contain escaped quotes * Repair strings enclosed in single quotes or special quotes * Repa
src/regular/jsonrepair.ts:455
↓ 3 callersFunctionparseString
* Parse a string enclosed by double quotes "...". Can contain escaped quotes * Repair strings enclosed in single quotes or special quotes * Repa
src/streaming/core.ts:653
↓ 3 callersFunctionparseWhitespace
(skipNewline: boolean)
src/regular/jsonrepair.ts:144
↓ 3 callersFunctionstreamToChunks
(stream: Transform)
src/streaming/stream.test.ts:51
↓ 3 callersFunctionstripNewlines
(text)
test-lib/cli.test.js:90
↓ 3 callersFunctionthrowUnexpectedCharacter
()
src/regular/jsonrepair.ts:947
↓ 3 callersFunctiontransform
(chunk: string)
src/streaming/core.ts:88
↓ 2 callersFunctionatEndOfNumber
()
src/regular/jsonrepair.ts:939
↓ 2 callersFunctionatEndOfNumber
()
src/streaming/core.ts:1083
↓ 2 callersFunctioncreateInputBuffer
()
src/streaming/buffer/InputBuffer.ts:14
↓ 2 callersFunctioncreateOutputBuffer
({ write, chunkSize, bufferSize }: OutputBufferOptions)
src/streaming/buffer/OutputBuffer.ts:22
↓ 2 callersFunctionfindNextDelimiter
(isKey: boolean, start: number)
src/streaming/core.ts:1046
↓ 2 callersFunctionflush
()
src/streaming/core.ts:98
↓ 2 callersFunctionhtmlEntityWindow
* Read a small window of buffered input at the given index to detect an HTML * entity, clamped so it never reads past the buffered input.
src/streaming/core.ts:635
↓ 2 callersFunctionisDoubleQuote
(char: string)
src/utils/stringUtils.ts:135
↓ 2 callersFunctionisDoubleQuoteEntity
(match: HtmlEntityMatch | null)
src/utils/stringUtils.ts:254
↓ 2 callersFunctionisHex
(char: string)
src/utils/stringUtils.ts:16
↓ 2 callersFunctionisInsideUnclosedBracket
(text: string, closeChar: string)
src/utils/stringUtils.ts:287
↓ 2 callersFunctionisSingleQuote
(char: string)
src/utils/stringUtils.ts:153
↓ 2 callersFunctionisSingleQuoteEntity
(match: HtmlEntityMatch | null)
src/utils/stringUtils.ts:261
↓ 2 callersFunctionisSpecialWhitespace
(text: Text, index: number)
src/utils/stringUtils.ts:100
↓ 2 callersFunctionisValidStringCharacter
(char: string)
src/utils/stringUtils.ts:24
↓ 2 callersFunctionpadRight
(text, len, char = ' ')
tools/benchmark/utils/table.mjs:32
↓ 2 callersFunctionparse
()
src/streaming/core.ts:108
↓ 2 callersFunctionparseArrayComma
()
src/streaming/core.ts:394
↓ 2 callersFunctionparseConcatenatedString
* Repair concatenated strings like "hello" + "world", change this into "helloworld"
src/regular/jsonrepair.ts:688
↓ 2 callersFunctionparseConcatenatedString
* Repair concatenated strings like "hello" + "world", change this into "helloworld"
src/streaming/core.ts:883
↓ 2 callersFunctionparseMarkdownCodeBlock
(blocks: string[])
src/regular/jsonrepair.ts:194
↓ 2 callersFunctionparseMarkdownCodeBlock
(blocks: string[])
src/streaming/core.ts:556
↓ 2 callersFunctionparseRepairArrayEnd
()
src/streaming/core.ts:420
↓ 2 callersFunctionparseRepairMissingComma
()
src/streaming/core.ts:410
↓ 2 callersFunctionparseRepairObjectEndOrComma
()
src/streaming/core.ts:375
↓ 2 callersFunctionparseUnquotedString
* Repair an unquoted string by adding quotes around it * Repair a MongoDB function call like NumberLong("2") * Repair a JSONP function call like
src/regular/jsonrepair.ts:830
↓ 2 callersFunctionparseWhitespace
(skipNewline: boolean)
src/streaming/core.ts:506
↓ 2 callersFunctionprevNonWhitespaceIndex
(start: number)
src/regular/jsonrepair.ts:918
↓ 2 callersFunctionprevNonWhitespaceIndex
(start: number)
src/streaming/core.ts:1062
↓ 2 callersFunctionskipEllipsis
* Skip ellipsis like "[1,2,3,...]" or "[1,2,3,...,9]" or "[...,7,8,9]" * or a similar construct in objects.
src/regular/jsonrepair.ts:256
↓ 2 callersFunctionthrowColonExpected
()
src/regular/jsonrepair.ts:959
↓ 2 callersFunctionthrowUnexpectedEnd
()
src/streaming/core.ts:1095
↓ 1 callersFunctionatEndOfBlockComment
(text: string, i: number)
src/regular/jsonrepair.ts:969
↓ 1 callersFunctionatEndOfBlockComment
(i: number)
src/streaming/core.ts:1112
↓ 1 callersFunctioncreateStack
()
src/streaming/stack.ts:15
↓ 1 callersFunctioncreateStreamingRepairWrapper
()
src/index.test.ts:902
↓ 1 callersFunctionendsWithCommaOrNewline
(text: string)
src/utils/stringUtils.ts:193
↓ 1 callersFunctionflushInputBuffer
()
src/streaming/core.ts:81
↓ 1 callersFunctiongenerateText
* create a JSON document containing all different things that JSON can have: * - nested objects and arrays * - strings (with control chars and unico
tools/benchmark/run.mjs:27
↓ 1 callersFunctiongetWidths
* @param {Record<string, unknown>[]} items * @returns {Map<any, any>}
tools/benchmark/utils/table.mjs:16
↓ 1 callersFunctionisDoubleQuoteLike
(char: string)
src/utils/stringUtils.ts:127
↓ 1 callersFunctionlast
(array: T[])
src/streaming/stack.ts:50
↓ 1 callersFunctionnextQuoteIsEndQuote
(index: number)
src/regular/jsonrepair.ts:928
↓ 1 callersFunctionnextQuoteIsEndQuote
(index: number)
src/streaming/core.ts:1072
↓ 1 callersFunctionoutputHelp
()
bin/cli.js:174
↓ 1 callersFunctionoutputVersion
()
bin/cli.js:120
↓ 1 callersFunctionparseArray
* Parse an array like '["item1", "item2", ...]'
src/regular/jsonrepair.ts:361
↓ 1 callersFunctionparseArrayEnd
()
src/streaming/core.ts:402
↓ 1 callersFunctionparseArrayStart
()
src/streaming/core.ts:219
↓ 1 callersFunctionparseComment
()
src/regular/jsonrepair.ts:169
↓ 1 callersFunctionparseComment
()
src/streaming/core.ts:531
↓ 1 callersFunctionparseFunctionCallEnd
()
src/streaming/core.ts:436
↓ 1 callersFunctionparseKeywords
* Parse keywords true, false, null * Repair Python keywords True, False, None
src/regular/jsonrepair.ts:803
↓ 1 callersFunctionparseKeywords
* Parse keywords true, false, null * Repair Python keywords True, False, None
src/streaming/core.ts:997
↓ 1 callersFunctionparseNewlineDelimitedJSON
* Parse and repair Newline Delimited JSON (NDJSON): * multiple JSON objects separated by a newline character
src/regular/jsonrepair.ts:414
next →1–100 of 161, ranked by callers