duration — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited duration (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 millisecond values into human-readable durations (ms, s, min, hr, day, month). Auto-pluralizes units. Also exports formatDuration utility function.
import { Duration } from 'reablocks';
// or utility only
import { formatDuration } from 'reablocks';| Prop | Type | Default | Description | |||
|---|---|---|---|---|---|---|
value | `number \ | string \ | null \ | undefined` | — | Duration in milliseconds |
emptyValue | string | 'N/A' | Displayed when value is null/undefined | |||
zeroValue | string | '0 ms' | Displayed when value is 0 |
<Duration value="125" /> {/* "125 ms" */}
<Duration value="1234567" /> {/* "20.58 mins" */}
<Duration value="123456789101" /> {/* "47.69 months" */}Values are formatted using these time units:
ms (1), s (1000), min (60,000), hr (3,600,000), day (86,400,000), month (2,592,000,000)<Duration value="0" /> {/* "0 ms" */}
<Duration value="0" zeroValue="No value" /> {/* "No value" */}
<Duration value={null} /> {/* "N/A" */}
<Duration value={null} emptyValue="Nothing to see" /> {/* "Nothing to see" */}import { formatDuration } from 'reablocks';
formatDuration(1234567); // "20.58 mins"
formatDuration(null); // ["N/A"]
formatDuration(0, 'N/A', '0 ms'); // "0 ms"~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.