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

Function keysOf

host/storage/src/main/kv.js:4–4  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

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)));
5
6export default () => ({
7 local_get: (key) => localStorage.getItem(key),

Callers 1

kv.jsFile · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected