Current collected state Current
Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Format a number as a three-digit, zero-padded string (fixed-width codes).
Format a number as a three-digit, zero-padded string — the shape used by many numeric codes (ISO-style IDs, ticket numbers, fixed-width export formats).
const code3 = require('006');
code3(6); // '006'
code3('42'); // '042'
code3(12345); // '12345' (longer input returned as-is)
Zero dependencies. TypeScript types included.
code3(value)| Argument | Type | Description |
|---|---|---|
value | number | string | Value to format. Non-numeric input is treated as 0; fractions are truncated; the sign is dropped. |
Returns a string padded to at least 3 digits.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 11 Sept 2026 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6e7ef5616653f4e3feb46dbfe96a71edc966b355a58190b08e35c9dd06f30381