MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / size

Method size

packages/filesystem/baidu/rw.ts:46–51  ·  view source on GitHub ↗
(content: string | Blob)

Source from the content-addressed store, hash-verified

44 }
45
46 size(content: string | Blob) {
47 if (content instanceof Blob) {
48 return content.size;
49 }
50 return new Blob([content]).size;
51 }
52
53 async md5(content: string | Blob) {
54 if (content instanceof Blob) {

Callers 1

writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected