MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / toString

Method toString

src/SourceMap.ts:99–101  ·  view source on GitHub ↗

* Returns the equivalent of `JSON.stringify(map)`

()

Source from the content-addressed store, hash-verified

97 * Returns the equivalent of `JSON.stringify(map)`
98 */
99 toString(): string {
100 return JSON.stringify(this)
101 }
102
103 /**
104 * Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:

Callers 2

toUrlMethod · 0.95
getBtoaFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected