left-pad is deprecated
Deprecated. The source gives no day. Replacement: String.prototype.padStart(). Source: left-pad package deprecation notice.
Check a version:
evergreen check pkg:npm/left-pad
The package author recommends the built-in String.prototype.padStart method.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | medium |
| Ecosystem | npm |
| Component | pkg:npm/left-pad |
| Affected versions | vers:npm/* |
| Date from the source | The source gives no day |
| Replacement | String.prototype.padStart() |
| Evidence last seen | 2026-10-13 |
| Reviewed | 2026-10-14 by arminazimi |
| Review due | 2027-10-14 (365 days after the last review) |
| Rule ID | npm.package.left-pad.deprecated |
Sources
- left-pad package deprecation notice (accessed 2026-10-13)
Migration
Constraints
- Preserve target width, fill-string behavior, string coercion, and handling of values already wider than the requested length.
Steps
- Replace left-pad calls. Convert each reported call to String(value).padStart(length, fill) while preserving existing coercion and defaults.
- Remove the dependency. Delete left-pad from package metadata and refresh the lockfile.
Verification
npm run test --if-present: Run padding edge cases and repository tests when defined.npm run build --if-present: Verify the project builds without left-pad.
Detected by
The npm detector. See Detectors and Compatibility.
Related
Same ecosystem
- abab is deprecated
- @angular/core v18 and older are no longer supported
- @angular/core v19 is no longer supported
- @angular/core v20 reaches end of life on 2026-11-28
- @angular/core v21 reaches end of life on 2027-06-30
- @angular/core v22 reaches end of life on 2028-06-30
- are-we-there-yet is no longer supported
- babel-eslint is deprecated
Data
This page is generated from registry/npm.json, rule npm.package.left-pad.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated