MCPcopy
hub / github.com/wellsjo/JSON-Splora / show

Method show

app/js/Output.js:42–50  ·  view source on GitHub ↗

* Formats and displays output * * @param {Object} data The data object to format and display

(data)

Source from the content-addressed store, hash-verified

40 */
41
42 show(data) {
43 let output = null
44 if (typeof data === 'string') {
45 output = data
46 } else {
47 output = JSON.stringify(data, null, 2)
48 }
49 this.output.setValue(output)
50 }
51
52 /**
53 * Sets the theme dynamically

Callers 1

handleEventsMethod · 0.80

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected