MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / kv.js

File kv.js

host/storage/src/main/kv.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/* localStorage + sessionStorage, sync handlers; both APIs are blocking by spec so no Promise wrapping needed. */
2
3/* JSON-array of keys (not CSV) so keys containing commas survive the round-trip. Python parses with `json.loads`. */
4const keysOf = (store) => JSON.stringify(Array.from({ length: store.length }, (_, i) => store.key(i)));

Callers

nothing calls this directly

Calls 2

keysOfFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected