MCPcopy Create free account

hub / github.com/Rich-Harris/magic-string / functions

Functions330 in github.com/Rich-Harris/magic-string

Methodprepend
(t)
benchmark/data-min.js:452
Methodprepend
(t)
benchmark/data-min.js:795
Methodprepend
* Prepends `str` to the bundle's intro.
src/Bundle.ts:420
Methodprepend
* Prepends the string with the specified content.
src/MagicString.ts:829
MethodprependLeft
(index, content)
benchmark/data.js:559
MethodprependLeft
(t, e)
benchmark/data-min.js:456
MethodprependLeft
* Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
src/MagicString.ts:841
MethodprependLeft
(content: string)
src/Chunk.ts:96
MethodprependRight
(content: string)
src/Chunk.ts:100
MethodreplaceMatch
(match: RegExpMatchArray)
src/MagicString.ts:1454
Functionreplacer
(match: string, p1: string, p2: string, p3: string, offset: number, string: string, groups: Record<string, str
tests/MagicString/replace.test.ts:237
Methodreplacer
(match)
benchmark/data.js:411
Methodreset
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
src/MagicString.ts:938
Methodreset
()
src/Chunk.ts:104
Methods
(a)
benchmark/data-min.js:329
Methodsnip
(start, end)
benchmark/data.js:671
Methodsnip
* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
src/MagicString.ts:1103
MethodtoString
()
benchmark/data.js:1001
MethodtoString
()
benchmark/data-min.js:798
MethodtoString
* Returns the generated string.
src/MagicString.ts:1198
MethodtoUrl
()
benchmark/data.js:152
MethodtrimEnd
(charType)
benchmark/data.js:757
MethodtrimEnd
(charType)
benchmark/data.js:1043
MethodtrimEnd
(t)
benchmark/data-min.js:620
MethodtrimEnd
(t)
benchmark/data-min.js:832
MethodtrimLines
()
benchmark/data.js:730
MethodtrimLines
()
benchmark/data.js:1022
MethodtrimLines
()
benchmark/data-min.js:594
MethodtrimLines
()
benchmark/data-min.js:816
MethodtrimLines
* Removes empty lines from the start and end.
src/MagicString.ts:1251
← previous301–330 of 330, ranked by callers