{"id":17399243,"url":"https://github.com/feross/zero-fill","last_synced_at":"2025-07-12T16:37:51.151Z","repository":{"id":15276617,"uuid":"18005988","full_name":"feross/zero-fill","owner":"feross","description":"Zero-fill a number to the given size.","archived":false,"fork":false,"pushed_at":"2020-07-17T04:38:17.000Z","size":61,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-05T09:19:18.839Z","etag":null,"topics":[],"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/feross.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-22T09:20:33.000Z","updated_at":"2024-09-25T09:09:34.000Z","dependencies_parsed_at":"2022-07-31T02:48:12.601Z","dependency_job_id":null,"html_url":"https://github.com/feross/zero-fill","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/feross/zero-fill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fzero-fill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fzero-fill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fzero-fill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fzero-fill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/zero-fill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fzero-fill/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264530160,"owners_count":23623304,"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":[],"created_at":"2024-10-16T15:13:56.631Z","updated_at":"2025-07-12T16:37:51.133Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zero-fill [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/zero-fill/master.svg\n[travis-url]: https://travis-ci.org/feross/zero-fill\n[npm-image]: https://img.shields.io/npm/v/zero-fill.svg\n[npm-url]: https://npmjs.org/package/zero-fill\n[downloads-image]: https://img.shields.io/npm/dm/zero-fill.svg\n[downloads-url]: https://npmjs.org/package/zero-fill\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Zero-fill a number to the given size.\n\n![zero](https://raw.githubusercontent.com/feross/zero-fill/master/img.png)\n\n## install\n\n```\nnpm install zero-fill\n```\n\n## usage\n\n```js\nvar zeroFill = require('zero-fill')\n\nzeroFill(4, 1) // '0001'\nzeroFill(10, 55) // '0000000055'\nzeroFill(1, 1) // '1'\n```\n\nPartial application:\n\n```js\nzeroFill(4)(1) // '0001'\n```\n\nCustom padding character:\n\n```js\nzeroFill(4, 55, ' ')  // '  55'\nzeroFill(4, 500, ' ') // ' 500'\n```\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fzero-fill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fzero-fill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fzero-fill/lists"}