Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ toUrl
Method
toUrl
benchmark/data.js:152–154 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
150
return
JSON.stringify(this);
151
}
152
toUrl() {
153
return
'data:application/json;charset=utf-8;base64,'
+ _btoa(this.toString());
154
}
155
}
156
function
guessIndent(code) {
157
const
lines = code.split(
'\n'
);
Callers
nothing calls this directly
Calls
2
toString
Method · 0.95
_btoa
Function · 0.85
Tested by
no test coverage detected