MCPcopy Index your code
hub / github.com/ClearURLs/Addon / storageAsJSON

Function storageAsJSON

core_js/storage.js:37–45  ·  view source on GitHub ↗

* Returns the storage as JSON.

()

Source from the content-addressed store, hash-verified

35 * Returns the storage as JSON.
36 */
37function storageAsJSON() {
38 let json = {};
39
40 Object.entries(storage).forEach(([key, value]) => {
41 json[key] = storageDataAsString(key);
42 });
43
44 return json;
45}
46
47/**
48 * Converts a given storage data to its string representation.

Callers

nothing calls this directly

Calls 3

storageDataAsStringFunction · 0.85
forEachMethod · 0.80
entriesMethod · 0.80

Tested by

no test coverage detected