Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ functions
Functions
270 in github.com/Rich-Harris/magic-string
⨍
Functions
270
◇
Types & classes
52
↓ 1 callers
Method
appendLeft
(index, content)
benchmark/data.js:306
↓ 1 callers
Method
appendLeft
(t)
benchmark/data-min.js:28
↓ 1 callers
Method
appendLeft
(t, e)
benchmark/data-min.js:256
↓ 1 callers
Method
appendLeft
* Appends the specified content at the index in the original string. * If a range *ending* with index is subsequently moved, the insert will be mov
src/MagicString.ts:133
↓ 1 callers
Method
appendRight
(content)
benchmark/data.js:31
↓ 1 callers
Method
appendRight
(t)
benchmark/data-min.js:31
↓ 1 callers
Method
appendRight
(content: string)
src/Chunk.ts:44
↓ 1 callers
Function
bench
()
benchmark/index.mjs:35
↓ 1 callers
Method
checkIntegrity
()
test/utils/IntegrityCheckingMagicString.ts:5
↓ 1 callers
Method
clone
()
benchmark/data.js:328
↓ 1 callers
Method
clone
()
benchmark/data-min.js:268
↓ 1 callers
Method
clone
* Does what you'd expect.
src/MagicString.ts:191
↓ 1 callers
Method
contains
(index)
benchmark/data.js:43
↓ 1 callers
Method
contains
(t)
benchmark/data-min.js:45
↓ 1 callers
Method
contains
(index: number)
src/Chunk.ts:60
↓ 1 callers
Method
generateDecodedMap
(options)
benchmark/data.js:353
↓ 1 callers
Method
generateDecodedMap
(options = {})
benchmark/data.js:894
↓ 1 callers
Method
generateDecodedMap
(t = {})
benchmark/data-min.js:723
↓ 1 callers
Method
generateDecodedMap
* Generates a sourcemap object with raw mappings in array form, rather than encoded as a string. * Useful if you need to manipulate the sourcemap f
src/MagicString.ts:234
↓ 1 callers
Method
generateMap
(options)
benchmark/data.js:385
↓ 1 callers
Method
generateMap
(t)
benchmark/data-min.js:312
↓ 1 callers
Function
getBtoa
()
src/SourceMap.ts:52
↓ 1 callers
Method
getIndentString
()
benchmark/data.js:959
↓ 1 callers
Method
getIndentString
()
benchmark/data-min.js:763
↓ 1 callers
Function
guessIndent
(code)
benchmark/data.js:156
↓ 1 callers
Function
guessIndent
(code: string)
src/utils/guessIndent.ts:1
↓ 1 callers
Method
has
(n2)
benchmark/data.js:9
↓ 1 callers
Method
has
(t)
benchmark/data-min.js:9
↓ 1 callers
Method
has
(n: number)
src/BitSet.ts:12
↓ 1 callers
Method
hasChanged
()
benchmark/data-min.js:646
↓ 1 callers
Method
insert
()
benchmark/data-min.js:363
↓ 1 callers
Method
isEmpty
()
benchmark/data-min.js:575
↓ 1 callers
Method
isEmpty
()
src/Bundle.ts:301
↓ 1 callers
Method
lastChar
()
benchmark/data.js:598
↓ 1 callers
Method
lastChar
()
benchmark/data-min.js:480
↓ 1 callers
Method
lastChar
()
src/MagicString.ts:797
↓ 1 callers
Method
lastLine
()
benchmark/data-min.js:490
↓ 1 callers
Method
length
()
benchmark/data-min.js:587
↓ 1 callers
Method
length
()
src/Bundle.ts:309
↓ 1 callers
Function
main
()
example/build.js:4
↓ 1 callers
Method
prependLeft
(content)
benchmark/data.js:70
↓ 1 callers
Method
prependLeft
(t)
benchmark/data-min.js:65
↓ 1 callers
Method
prependLeft
(content: string)
src/Chunk.ts:97
↓ 1 callers
Method
prependRight
(index, content)
benchmark/data.js:570
↓ 1 callers
Method
prependRight
(t, e)
benchmark/data-min.js:462
↓ 1 callers
Method
remove
(start, end)
benchmark/data.js:581
↓ 1 callers
Method
remove
* Removes the characters from `start` to `end` (of the original string, **not** the generated string). * Removing the same content twice, or making
src/MagicString.ts:720
↓ 1 callers
Method
replaceAll
* Same as `s.replace`, but replace all matched strings instead of just one.
src/MagicString.ts:1220
↓ 1 callers
Method
reset
()
src/Chunk.ts:105
↓ 1 callers
Function
runWithInstance
(name, inputs, func, setup)
benchmark/index.mjs:9
↓ 1 callers
Method
toString
()
benchmark/data.js:149
↓ 1 callers
Method
toString
()
benchmark/data-min.js:127
↓ 1 callers
Method
toString
()
benchmark/data-min.js:569
↓ 1 callers
Method
toString
* Returns the generated string.
src/MagicString.ts:974
↓ 1 callers
Method
trim
(charType)
benchmark/data.js:733
↓ 1 callers
Method
trim
(t)
benchmark/data-min.js:819
↓ 1 callers
Method
trimEnd
(charType?: string)
src/Bundle.ts:343
↓ 1 callers
Method
trimEnd
(rx: RegExp)
src/Chunk.ts:158
↓ 1 callers
Method
trimLines
()
src/Bundle.ts:316
↓ 1 callers
Method
trimStart
(rx)
benchmark/data.js:115
↓ 1 callers
Method
trimStart
(charType)
benchmark/data.js:780
↓ 1 callers
Method
trimStart
(charType)
benchmark/data.js:1028
↓ 1 callers
Method
trimStart
(t)
benchmark/data-min.js:100
↓ 1 callers
Method
trimStart
(t)
benchmark/data-min.js:643
↓ 1 callers
Method
trimStart
(t)
benchmark/data-min.js:822
↓ 1 callers
Method
trimStart
(charType?: string)
src/Bundle.ts:324
↓ 1 callers
Method
trimStart
(rx: RegExp)
src/Chunk.ts:184
↓ 1 callers
Function
w
()
benchmark/data-min.js:112
Method
addSourcemapLocation
(char)
benchmark/data.js:298
Method
addSourcemapLocation
* Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
src/MagicString.ts:113
Method
append
(content)
benchmark/data.js:301
Method
append
(str, options)
benchmark/data.js:873
Method
append
(t, e)
benchmark/data-min.js:711
Method
append
* Appends the specified content to the end of the string.
src/MagicString.ts:120
Method
appendRight
(index, content)
benchmark/data.js:317
Method
appendRight
(t, e)
benchmark/data-min.js:262
Method
appendRight
* Appends the specified content at the index in the original string. * If a range *starting* with index is subsequently moved, the insert will be m
src/MagicString.ts:163
Method
clone
()
benchmark/data.js:880
Method
clone
()
benchmark/data-min.js:714
Method
clone
()
src/Bundle.ts:116
Method
constructor
(arg)
benchmark/data.js:3
Method
constructor
(start, end, content)
benchmark/data.js:14
Method
constructor
(properties)
benchmark/data.js:141
Method
constructor
(hires)
benchmark/data.js:214
Method
constructor
(string, options = {})
benchmark/data.js:278
Method
constructor
(options = {})
benchmark/data.js:833
Method
constructor
(t)
benchmark/data-min.js:3
Method
constructor
(t, e, n)
benchmark/data-min.js:14
Method
constructor
(t)
benchmark/data-min.js:119
Method
constructor
(t)
benchmark/data-min.js:179
Method
constructor
(t, e = {})
benchmark/data-min.js:229
Method
constructor
(t = {})
benchmark/data-min.js:676
Method
constructor
(properties: DecodedSourceMap)
src/SourceMap.ts:80
Method
constructor
(options: BundleOptions = {})
src/Bundle.ts:47
Method
constructor
(string: string, options: MagicStringOptions = {})
src/MagicString.ts:81
Method
constructor
(arg?: BitSet)
src/BitSet.ts:4
Method
constructor
(start: number, end: number, content: string)
src/Chunk.ts:15
Method
constructor
()
src/utils/Stats.ts:7
Method
constructor
(hires: SourceMapOptions['hires'])
src/utils/Mappings.ts:16
Method
eachPrevious
(fn)
benchmark/data.js:53
← previous
next →
101–200 of 270, ranked by callers