{"id":15928007,"url":"https://github.com/nothingrandom/leadingzero","last_synced_at":"2025-03-24T15:32:10.975Z","repository":{"id":42929775,"uuid":"240492425","full_name":"nothingrandom/leadingzero","owner":"nothingrandom","description":"Add leading zeros to a number or string","archived":false,"fork":false,"pushed_at":"2024-09-24T09:04:43.000Z","size":1362,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T03:59:04.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nothingrandom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-14T11:22:29.000Z","updated_at":"2023-09-22T17:07:26.000Z","dependencies_parsed_at":"2024-06-21T16:43:28.053Z","dependency_job_id":"5bb11b44-cde4-471f-b575-0f5f44961a93","html_url":"https://github.com/nothingrandom/leadingzero","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.4666666666666667,"last_synced_commit":"a6e51f412cc1926389ac088f4d037f4843bcc866"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothingrandom%2Fleadingzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothingrandom%2Fleadingzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothingrandom%2Fleadingzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothingrandom%2Fleadingzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nothingrandom","download_url":"https://codeload.github.com/nothingrandom/leadingzero/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245298266,"owners_count":20592577,"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-06T23:21:07.969Z","updated_at":"2025-03-24T15:32:05.951Z","avatar_url":"https://github.com/nothingrandom.png","language":"JavaScript","readme":"# leadingzero\n![Travis (.com)](https://img.shields.io/travis/com/nothingrandom/leadingzero)\n\u003e Add leading zeros to a number or string\n\n## Install\n\n``` bash\n$ yarn add leadingzero\n$ npm install leadingzero\n```\n\n## Usage (ES6 imports)\n``` js\nimport leadingzero from 'leadingzero';\n\n// leadingzero(number, zeros, character)\n\nleadingzero(7, 3);\n// =\u003e '007'\n\nleadingzero('10', 4);\n// =\u003e '0010'\n\nleadingzero(1234, 2);\n// =\u003e '1234'\n```\n\n## License\nMIT © [Benjamin Grant](https://nothingrandom.com)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothingrandom%2Fleadingzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnothingrandom%2Fleadingzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothingrandom%2Fleadingzero/lists"}