{"id":15839644,"url":"https://github.com/afeiship/next-pad-index","last_synced_at":"2026-04-11T20:39:56.839Z","repository":{"id":57122778,"uuid":"278543784","full_name":"afeiship/next-pad-index","owner":"afeiship","description":"PadLeft with zero for index.","archived":false,"fork":false,"pushed_at":"2020-11-20T05:57:32.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:08:41.229Z","etag":null,"topics":["index","next","pad","pad-left","zero"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-10T05:10:08.000Z","updated_at":"2020-11-20T05:57:34.000Z","dependencies_parsed_at":"2022-08-24T14:59:31.650Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-pad-index","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pad-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pad-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pad-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pad-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-pad-index/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246673645,"owners_count":20815598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["index","next","pad","pad-left","zero"],"created_at":"2024-10-05T16:20:48.728Z","updated_at":"2025-10-16T13:37:18.937Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-pad-index\n\u003e PadLeft with zero for index.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-pad-index\n```\n\n## options\n\u003e { char: '0', step: 0, size: 2 }\n\n| api  | type   | default |\n| ---- | ------ | ------- |\n| char | string | '0'     |\n| step | number | 0       |\n| size | number | 2       |\n\n## usage\n```js\nimport '@jswork/next-pad-index';\n\n// default options:\nnx.padIndex(2);               // 002\nnx.padIndex(100);             // 100\n\n// with options:\nnx.padIndex(100, { step: 1})  //101\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-pad-index/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-pad-index\n[version-url]: https://npmjs.org/package/@jswork/next-pad-index\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-pad-index\n[license-url]: https://github.com/afeiship/next-pad-index/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-pad-index\n[size-url]: https://github.com/afeiship/next-pad-index/blob/master/dist/next-pad-index.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-pad-index\n[download-url]: https://www.npmjs.com/package/@jswork/next-pad-index\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-pad-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-pad-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-pad-index/lists"}