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

Method toString

src/SourceMap.ts:125–127  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

123 * Returns the equivalent of `JSON.stringify(map)`
124 */
125 toString(): string {
126 return JSON.stringify(this)
127 }
128
129 /**
130 * 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