MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / save

Function save

public/code/javascript/10_storage.js:1–3  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1const save = (key, value) => {
2 localStorage.setItem(key, JSON.stringify(value));
3};
4
5const load = (key, fallback = null) => {
6 const raw = localStorage.getItem(key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected