MCPcopy Index your code
hub / github.com/Mathieu2301/TradingView-API / parseCompressed

Function parseCompressed

src/protocol.js:52–59  ·  view source on GitHub ↗

* Parse compressed data * @function parseCompressed * @param {string} data Compressed data * @returns {Promise<{}>} Parsed data

(data)

Source from the content-addressed store, hash-verified

50 * @returns {Promise<{}>} Parsed data
51 */
52 async parseCompressed(data) {
53 const zip = new JSZip();
54 return JSON.parse(
55 await (
56 await zip.loadAsync(data, { base64: true })
57 ).file('').async('text'),
58 );
59 },
60};

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected