{"_id":"00h","name":"00h","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"00h","version":"1.0.0","description":"Format a number as a three-digit, zero-padded string (fixed-width codes).","main":"index.js","types":"index.d.ts","keywords":["pad","zero-pad","three-digit","code","format"],"license":"MIT","author":{"name":"iceywu","email":"3128006406@qq.com"},"engines":{"node":">=14"},"_id":"00h@1.0.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-ORyDrBnkSmXE+5HN5nkc9g/9lu4BixX5CAt6IlieCn0lfzvJu6mqxs/5ziIzDU7UZUBpZpE9BFkEikD7dd+j3Q==","shasum":"e3a2f96e91f04066e98cca56808b40e84e6af5fe","tarball":"https://registry.npmjs.org/00h/-/00h-1.0.0.tgz","fileCount":5,"unpackedSize":2967,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDg/7ORhaUSRbl6seo6yqYX9JPgw1PuqJEBAvejGEerFQIhAOL2su+FBugnpyIsTZ+wA8zJSgheJ5iJEf80ggMMqVoB"}]},"_npmUser":{"name":"levwu","email":"levwume@gmail.com"},"directories":{},"maintainers":[{"name":"levwu","email":"levwume@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/00h_1.0.0_1789122118444_0.04395386224117881"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-11T10:21:58.322Z","1.0.0":"2026-09-11T10:21:58.594Z","modified":"2026-09-11T10:21:58.819Z"},"maintainers":[{"name":"levwu","email":"levwume@gmail.com"}],"description":"Format a number as a three-digit, zero-padded string (fixed-width codes).","keywords":["pad","zero-pad","three-digit","code","format"],"author":{"name":"iceywu","email":"3128006406@qq.com"},"license":"MIT","readme":"# 006\n\nFormat a number as a three-digit, zero-padded string — the shape used by many\nnumeric codes (ISO-style IDs, ticket numbers, fixed-width export formats).\n\n```js\nconst code3 = require('006');\n\ncode3(6);      // '006'\ncode3('42');   // '042'\ncode3(12345);  // '12345'  (longer input returned as-is)\n```\n\nZero dependencies. TypeScript types included.\n\n## API\n\n### `code3(value)`\n\n| Argument | Type | Description |\n|---|---|---|\n| `value` | `number \\| string` | Value to format. Non-numeric input is treated as `0`; fractions are truncated; the sign is dropped. |\n\nReturns a `string` padded to at least 3 digits.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-4c4011de30c493f68584a8e477201dab"}