MCPcopy Create free account

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

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

Methodconstructor
()
src/utils/Stats.ts:7
Methodconstructor
(hires: SourceMapOptions['hires'])
src/utils/Mappings.ts:16
MethodeachPrevious
(fn)
benchmark/data.js:53
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:289
MethodgetIndentString
()
benchmark/data.js:388
MethodgetIndentString
()
benchmark/data-min.js:315
MethodgetIndentString
()
src/MagicString.ts:306
MethodgetReplacement
(match, str)
benchmark/data.js:788
MethodgetReplacement
(match: RegExpMatchArray, str: string)
src/MagicString.ts:1135
MethodhasChanged
()
benchmark/data.js:784
MethodhasChanged
* Indicates if the string has been changed.
src/MagicString.ts:1129
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:324
MethodindentAt
(index: number)
src/MagicString.ts:371
Methodinsert
()
benchmark/data.js:455
Methodinsert
@internal
src/MagicString.ts:450
MethodinsertLeft
(index, content)
benchmark/data.js:460
MethodinsertLeft
(t, e)
benchmark/data-min.js:368
MethodinsertLeft
@internal
src/MagicString.ts:455
MethodinsertRight
(index, content)
benchmark/data.js:469
MethodinsertRight
(t, e)
benchmark/data-min.js:378
MethodinsertRight
@internal
src/MagicString.ts:467
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:1006
MethodlastLine
()
benchmark/data.js:609
MethodlastLine
()
src/MagicString.ts:830
Methodlength
()
benchmark/data.js:722
Methodlength
()
benchmark/data.js:1016
Methodlength
()
benchmark/data-min.js:813
Methodlength
()
src/MagicString.ts:1021
MethodmatchAll
(re, str)
benchmark/data.js:801
MethodmatchAll
(re: RegExp, str: string)
src/MagicString.ts:1153
Methodmove
(start, end, index)
benchmark/data.js:478
Methodmove
* Moves the characters from `start` and `end` to `index`.
src/MagicString.ts:481
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:660
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:672
Functionreplacer
(match: string, p1: string, p2: string, p3: string, offset: number, string: string, groups: Record<string, str
test/MagicString.test.ts:1947
Methodreplacer
(match)
benchmark/data.js:411
Methodreplacer
(match: string)
src/MagicString.ts:359
Methodreset
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
src/MagicString.ts:774
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:929
MethodtoString
()
benchmark/data.js:1001
MethodtoString
()
benchmark/data-min.js:798
MethodtoString
()
src/Bundle.ts:290
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:107
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:1034
← previous201–273 of 273, ranked by callers