MCPcopy
hub / github.com/vercel/next.js / prepend

Method prepend

test/lib/next-test-utils.ts:833–836  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

831 }
832
833 prepend(str: string) {
834 const content = readFileSync(this.path, 'utf8')
835 this.write(str + content)
836 }
837
838 delete() {
839 unlinkSync(this.path)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.95
readFileSyncFunction · 0.85

Tested by

no test coverage detected