Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ toString
Method
toString
benchmark/data.js:149–151 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
147
this.mappings = encode(properties.mappings);
148
}
149
toString() {
150
return
JSON.stringify(this);
151
}
152
toUrl() {
153
return
'data:application/json;charset=utf-8;base64,'
+ _btoa(this.toString());
154
}
Callers
1
toUrl
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected