MCPcopy Create free account

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

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

MethodeachPrevious
(t)
benchmark/data-min.js:52
MethodeachPrevious
(fn: (chunk: Chunk) => void)
src/Chunk.ts:74
MethodgenerateMap
(options)
benchmark/data.js:956
MethodgenerateMap
(t)
benchmark/data-min.js:760
MethodgenerateMap
* Generates a version 3 sourcemap.
src/MagicString.ts:288
MethodgetIndentString
()
benchmark/data.js:388
MethodgetIndentString
()
benchmark/data-min.js:315
MethodgetIndentString
()
src/MagicString.ts:305
MethodgetReplacement
(match, str)
benchmark/data.js:788
MethodgetReplacement
(match: RegExpMatchArray, str: string)
src/MagicString.ts:1118
MethodhasChanged
()
benchmark/data.js:784
MethodhasChanged
* Indicates if the string has been changed.
src/MagicString.ts:1112
Methodi
(r, s)
benchmark/data-min.js:657
Methodindent
(indentStr, options)
benchmark/data.js:391
Methodindent
(indentStr)
benchmark/data.js:973
Methodindent
(t)
benchmark/data-min.js:773
Methodindent
(indentStr?: string | IndentOptions, options?: IndentOptions)
src/MagicString.ts:323
MethodindentAt
(index: number)
src/MagicString.ts:370
Methodinsert
()
benchmark/data.js:455
Methodinsert
@internal
src/MagicString.ts:449
MethodinsertLeft
(index, content)
benchmark/data.js:460
MethodinsertLeft
(t, e)
benchmark/data-min.js:368
MethodinsertLeft
@internal
src/MagicString.ts:456
MethodinsertRight
(index, content)
benchmark/data.js:469
MethodinsertRight
(t, e)
benchmark/data-min.js:378
MethodinsertRight
@internal
src/MagicString.ts:468
MethodisEmpty
()
benchmark/data.js:710
MethodisEmpty
()
benchmark/data.js:1011
MethodisEmpty
()
benchmark/data-min.js:807
MethodisEmpty
* Returns true if the resulting source is empty (disregarding white space).
src/MagicString.ts:989
MethodlastLine
()
benchmark/data.js:609
MethodlastLine
()
src/MagicString.ts:815
Methodlength
()
benchmark/data.js:722
Methodlength
()
benchmark/data.js:1016
Methodlength
()
benchmark/data-min.js:813
Methodlength
()
src/MagicString.ts:1004
MethodmatchAll
(re, str)
benchmark/data.js:801
MethodmatchAll
(re: RegExp, str: string)
src/MagicString.ts:1136
Methodmove
(start, end, index)
benchmark/data.js:478
Methodmove
* Moves the characters from `start` and `end` to `index`.
src/MagicString.ts:482
Methodn
(r, s)
benchmark/data-min.js:650
Methodprepend
(content)
benchmark/data.js:554
Methodprepend
(str)
benchmark/data.js:997
Methodprepend
(t)
benchmark/data-min.js:452
Methodprepend
(t)
benchmark/data-min.js:795
Methodprepend
* Prepends the string with the specified content.
src/MagicString.ts:652
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:663
Functionreplacer
(match, p1, p2, p3, offset, string, groups)
test/MagicString.test.ts:1900
Methodreplacer
(match)
benchmark/data.js:411
Methodreplacer
(match: string)
src/MagicString.ts:358
Methodreset
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
src/MagicString.ts:761
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:912
MethodtoString
()
benchmark/data.js:1001
MethodtoString
()
benchmark/data-min.js:798
MethodtoString
()
src/Bundle.ts:288
MethodtoUrl
()
benchmark/data.js:152
MethodtoUrl
* Returns a DataURI containing the sourcemap. Useful for doing this sort of thing: * `generateMap(options?: SourceMapOptions): SourceMap;`
src/SourceMap.ts:106
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:1017
← previous201–270 of 270, ranked by callers