MCPcopy
hub / github.com/kickscondor/fraidycat / save

Function save

test.js:23–28  ·  view source on GitHub ↗
(k, v)

Source from the content-addressed store, hash-verified

21const PART_SIZE = 6400
22
23function save(k, v) {
24 let len = JSON.stringify(v).length
25 if (len > PART_SIZE)
26 throw new ArgumentError('too big!')
27 return len
28}
29
30// new id
31const add1 = {id: "discombobulated.co.nz-6679866", importance: "30",

Callers 1

test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected