Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ toString
Method
toString
tests/fuzz/edit-model.ts:121–123 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
119
}
120
121
toString(): string {
122
return
this.left[0] + this.between(0, this.original.length) + this.right[this.original.length]
123
}
124
125
/** Like MagicString, leaves out the string intro and outro */
126
length(): number {
Callers
15
check
Function · 0.95
hasChanged
Method · 0.95
isEmpty
Method · 0.95
update.test.ts
File · 0.45
slice.test.ts
File · 0.45
append.test.ts
File · 0.45
reset.test.ts
File · 0.45
prepend.test.ts
File · 0.45
insert.test.ts
File · 0.45
replace.test.ts
File · 0.45
misc.test.ts
File · 0.45
move.test.ts
File · 0.45
Calls
1
between
Method · 0.95
Tested by
1
check
Function · 0.76