Skip to content
JS
Package

pad-left

Left pad a string with zeros or a specified string. Fastest implementation.

v2.1.0, 7 May 2016MITCommonJSTypes: NoneStrings and text
$ npm install pad-left

Key numbers

As of 25 Sept 2026
Weekly downloads
499.8k
+88% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
10 years ago
v2.1.0
GitHub stars
44
6 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 859.3k (21 Jul 2026)Low 164k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

499,781 downloads last week, 2,204,834 in the last month. The 12-month change of +88% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
2.1.0, 7 May 201610 years ago
First published
30 Nov 2014
Last push to GitHub
17 Jan 20221,712 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
71

Major versions

  1. v2 first release 2.0.0, 11 Aug 2015
  2. v1 first release 1.0.0, 19 Jan 2015
  3. v0 first release 0.1.0, 30 Nov 2014

Recent releases

VersionPublished
2.1.07 May 2016
2.0.323 Mar 2016
2.0.223 Mar 2016
2.0.131 Jan 2016
2.0.011 Aug 2015
1.0.227 Apr 2015
1.0.119 Jan 2015
1.0.019 Jan 2015
0.2.05 Dec 2014
0.1.130 Nov 2014
0.1.030 Nov 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
repeat-string
npm install pad-left
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pad-left@2.1.0/
  • unpkghttps://unpkg.com/pad-left@2.1.0/
  • esm.shhttps://esm.sh/pad-left@2.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.