MCPcopy Create free account
hub / github.com/breck7/scroll / toDelimited

Method toDelimited

external/.scrollLibs.js:16370–16374  ·  view source on GitHub ↗
(delimiter, header = this._getUnionNames(), escapeSpecialChars = true)

Source from the content-addressed store, hash-verified

16368 return arrays.rows
16369 }
16370 toDelimited(delimiter, header = this._getUnionNames(), escapeSpecialChars = true) {
16371 const regex = new RegExp(`(\\n|\\"|\\${delimiter})`)
16372 const atomFn = (str, row, column) => (!str.toString().match(regex) ? str : `"` + str.replace(/\"/g, `""`) + `"`)
16373 return this._toDelimited(delimiter, header, escapeSpecialChars ? atomFn : str => str)
16374 }
16375 _getMatrix(columns) {
16376 const matrix = []
16377 this.forEach(subparticle => {

Callers 5

asCsvMethod · 0.95
asSsvMethod · 0.95
asTsvMethod · 0.95

Calls 2

_getUnionNamesMethod · 0.95
_toDelimitedMethod · 0.95

Tested by

no test coverage detected