MCPcopy Create free account

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

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

Methodconstructor
(t = {})
benchmark/data-min.js:676
Methodconstructor
(properties: DecodedSourceMap)
src/SourceMap.ts:95
Methodconstructor
(options: BundleOptions = {})
src/Bundle.ts:63
Methodconstructor
(string: string, options: MagicStringOptions = {})
src/MagicString.ts:172
Methodconstructor
(arg?: BitSet)
src/BitSet.ts:4
Methodconstructor
(start: number, end: number, content: string)
src/Chunk.ts:15
Methodconstructor
(message: string, options?: ErrorOptions)
src/MagicStringError.ts:10
Methodconstructor
()
src/utils/Stats.ts:7
Methodconstructor
(hires: SourceMapOptions['hires'])
src/utils/Mappings.ts:23
MethodeachPrevious
(fn)
benchmark/data.js:53
MethodeachPrevious
(t)
benchmark/data-min.js:52
MethodgenerateMap
(options)
benchmark/data.js:956
MethodgenerateMap
(t)
benchmark/data-min.js:760
MethodgenerateMap
* Generates a version 3 sourcemap.
src/MagicString.ts:392
MethodgetIndentString
()
benchmark/data.js:388
MethodgetIndentString
()
benchmark/data-min.js:315
MethodgetIndentString
()
src/MagicString.ts:409
MethodgetReplacement
(match, str)
benchmark/data.js:788
MethodgetReplacement
(match: RegExpMatchArray, str: string)
src/MagicString.ts:1362
MethodhasChanged
()
benchmark/data.js:784
MethodhasChanged
* Indicates if the string has been changed.
src/MagicString.ts:1323
Methodi
(r, s)
benchmark/data-min.js:657
FunctionincludeContent
(source)
test/Bundle.test.ts:788
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:427
MethodindentAt
(index: number)
src/MagicString.ts:483
MethodindentPiece
(str: string)
src/MagicString.ts:466
Methodinsert
()
benchmark/data.js:455
Methodinsert
@internal
src/MagicString.ts:570
MethodinsertLeft
(index, content)
benchmark/data.js:460
MethodinsertLeft
@internal
src/MagicString.ts:575
MethodinsertRight
(index, content)
benchmark/data.js:469
MethodinsertRight
@internal
src/MagicString.ts:587
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:1189
MethodlastLine
()
benchmark/data.js:609
MethodlastLine
()
src/MagicString.ts:1003
Methodlength
()
benchmark/data.js:722
Methodlength
()
benchmark/data.js:1016
Methodlength
()
benchmark/data-min.js:813
Methodlength
()
src/MagicString.ts:1209
Methodmove
(start, end, index)
benchmark/data.js:478
Methodmove
* Moves the characters from `start` and `end` to `index`.
src/MagicString.ts:601
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:814
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:826
MethodreplaceMatch
(match: RegExpMatchArray)
src/MagicString.ts:1382
Functionreplacer
(match: string, p1: string, p2: string, p3: string, offset: number, string: string, groups: Record<string, str
test/MagicString/replace.test.ts:228
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:943
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:1110
MethodtoString
()
benchmark/data.js:1001
MethodtoString
()
benchmark/data-min.js:798
MethodtoString
* Returns the generated string.
src/MagicString.ts:1174
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:133
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:1222
← previous201–277 of 277, ranked by callers