{"id":17025877,"url":"https://github.com/left-pad/left-pad","last_synced_at":"2026-04-11T22:30:17.542Z","repository":{"id":15015210,"uuid":"17740831","full_name":"left-pad/left-pad","owner":"left-pad","description":":arrow_left: String left pad -- deprecated, use String​.prototype​.pad​Start()","archived":true,"fork":false,"pushed_at":"2019-04-19T14:16:20.000Z","size":53,"stargazers_count":1292,"open_issues_count":10,"forks_count":135,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-02-08T18:03:17.388Z","etag":null,"topics":["left","left-pad","leftpad","pad","padding","string-manipulation"],"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/left-pad.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-14T09:09:34.000Z","updated_at":"2025-01-17T19:29:22.000Z","dependencies_parsed_at":"2022-08-07T08:00:49.374Z","dependency_job_id":null,"html_url":"https://github.com/left-pad/left-pad","commit_stats":null,"previous_names":["stevemao/left-pad"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/left-pad%2Fleft-pad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/left-pad%2Fleft-pad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/left-pad%2Fleft-pad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/left-pad%2Fleft-pad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/left-pad","download_url":"https://codeload.github.com/left-pad/left-pad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239988393,"owners_count":19729986,"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":["left","left-pad","leftpad","pad","padding","string-manipulation"],"created_at":"2024-10-14T07:30:08.940Z","updated_at":"2026-04-11T22:30:17.504Z","avatar_url":"https://github.com/left-pad.png","language":"JavaScript","readme":"## left-pad\n\nString left pad\n\n[![Build Status][travis-image]][travis-url]\n\n## Install\n\n```bash\n$ npm install left-pad\n```\n\n## Usage\n\n```js\nconst leftPad = require('left-pad')\n\nleftPad('foo', 5)\n// =\u003e \"  foo\"\n\nleftPad('foobar', 6)\n// =\u003e \"foobar\"\n\nleftPad(1, 2, '0')\n// =\u003e \"01\"\n\nleftPad(17, 5, 0)\n// =\u003e \"00017\"\n```\n\n**NOTE:** The third argument should be a single `char`. However the module doesn't throw an error if you supply more than one `char`s. See [#28](https://github.com/stevemao/left-pad/pull/28).\n\n**NOTE:** Characters having code points outside of [BMP plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane) are considered two distinct characters. See [#58](https://github.com/stevemao/left-pad/issues/58).\n\n[travis-image]: https://travis-ci.org/stevemao/left-pad.svg?branch=master\n[travis-url]: https://travis-ci.org/stevemao/left-pad\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleft-pad%2Fleft-pad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleft-pad%2Fleft-pad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleft-pad%2Fleft-pad/lists"}