MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / formatPostContentSize

Function formatPostContentSize

src/Data/PostData.js:12–14  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

10}
11
12export function formatPostContentSize(bytes) {
13 return `${(bytes / 1000 / 1000).toFixed(2)} MB`;
14}
15
16function assertPostContentWithinLimit(content) {
17 const size = getUtf8ByteLength(content);

Callers 3

AddModifyPostFunction · 0.90
handleSubmitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected