Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ functions
Functions
330 in github.com/Rich-Harris/magic-string
⨍
Functions
330
◇
Types & classes
66
Method
prepend
(t)
benchmark/data-min.js:452
Method
prepend
(t)
benchmark/data-min.js:795
Method
prepend
* Prepends `str` to the bundle's intro.
src/Bundle.ts:420
Method
prepend
* Prepends the string with the specified content.
src/MagicString.ts:829
Method
prependLeft
(index, content)
benchmark/data.js:559
Method
prependLeft
(t, e)
benchmark/data-min.js:456
Method
prependLeft
* Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
src/MagicString.ts:841
Method
prependLeft
(content: string)
src/Chunk.ts:96
Method
prependRight
(content: string)
src/Chunk.ts:100
Method
replaceMatch
(match: RegExpMatchArray)
src/MagicString.ts:1454
Function
replacer
(match: string, p1: string, p2: string, p3: string, offset: number, string: string, groups: Record<string, str
tests/MagicString/replace.test.ts:237
Method
replacer
(match)
benchmark/data.js:411
Method
reset
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
src/MagicString.ts:938
Method
reset
()
src/Chunk.ts:104
Method
s
(a)
benchmark/data-min.js:329
Method
snip
(start, end)
benchmark/data.js:671
Method
snip
* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
src/MagicString.ts:1103
Method
toString
()
benchmark/data.js:1001
Method
toString
()
benchmark/data-min.js:798
Method
toString
* Returns the generated string.
src/MagicString.ts:1198
Method
toUrl
()
benchmark/data.js:152
Method
trimEnd
(charType)
benchmark/data.js:757
Method
trimEnd
(charType)
benchmark/data.js:1043
Method
trimEnd
(t)
benchmark/data-min.js:620
Method
trimEnd
(t)
benchmark/data-min.js:832
Method
trimLines
()
benchmark/data.js:730
Method
trimLines
()
benchmark/data.js:1022
Method
trimLines
()
benchmark/data-min.js:594
Method
trimLines
()
benchmark/data-min.js:816
Method
trimLines
* Removes empty lines from the start and end.
src/MagicString.ts:1251
← previous
301–330 of 330, ranked by callers