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

Method nest

external/.scrollLibs.js:17844–17849  ·  view source on GitHub ↗
(str, xValue)

Source from the content-addressed store, hash-verified

17842 return headerRow
17843 }
17844 static nest(str, xValue) {
17845 const ParticleBreakSymbol = PARTICLE_MEMBRANE
17846 const AtomBreakSymbol = ATOM_MEMBRANE
17847 const indent = ParticleBreakSymbol + AtomBreakSymbol.repeat(xValue)
17848 return str ? indent + str.replace(/\n/g, indent) : ""
17849 }
17850 static fromDisk(path) {
17851 const format = this._getFileFormat(path)
17852 const content = require("fs").readFileSync(path, "utf8")

Callers 3

logMessageTextMethod · 0.80
_mountCssMethod · 0.80

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected