data-size — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited data-size (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Formats byte values into human-readable sizes (B, KiB, MiB, GiB, etc.) using binary scale (1024). Also exports formatSize utility function.
import { DataSize } from 'reablocks';
// or utility only
import { formatSize } from 'reablocks';| Prop | Type | Default | Description | |||
|---|---|---|---|---|---|---|
value | `number \ | string \ | null \ | undefined` | — | Byte value to format |
emptyValue | string | 'N/A' | Displayed when value is null/undefined | |||
scale | string[] | ['B','KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB'] | Custom unit scale | |||
decimals | number | 2 | Number of decimal places |
<DataSize value="4500" /> {/* "4.39 KiB" */}
<DataSize value="34343233" /> {/* "32.75 MiB" */}
<DataSize value={434334434123} /> {/* "404.52 GiB" */}const scale = ['b', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb', 'zb', 'yb'];
<DataSize value="4500" scale={scale} /> {/* "4.39 kb" */}<DataSize value={34343233} decimals={0} /> {/* "33 MiB" */}
<DataSize value={34343233} decimals={5} /> {/* "32.74538 MiB" */}<DataSize value={undefined} /> {/* "N/A" */}
<DataSize value={null} emptyValue="Nothing to see" /> {/* "Nothing to see" */}import { formatSize } from 'reablocks';
formatSize(4500); // "4.39 KiB"
formatSize(null, 'N/A'); // ["N/A"]
formatSize(4500, 'N/A', ['B','KB','MB','GB'], 0); // custom scale + decimals~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.