MCPcopy 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}
156function guessIndent(code) {
157 const lines = code.split('\n');

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.95
_btoaFunction · 0.85

Tested by

no test coverage detected