MCPcopy Create free account
hub / github.com/tinyplex/tinybase / toKb

Function toKb

site/ui/Readme.tsx:14–15  ·  view source on GitHub ↗
(bytes: number | undefined)

Source from the content-addressed store, hash-verified

12};
13
14const toKb = (bytes: number | undefined) =>
15 bytes != null ? `${(bytes / 1000).toFixed(1)}kB` : '';
16
17export const useReadme = (node: Node): [string, string] => {
18 const metadata = usePackageData();

Callers 1

getSizeTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…