Registry
E

e18e/@e18e/string.prototype.padleft

No description available

e18e36 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/string.prototype.padleft

String.prototype.padLeft Codemod

Introduction

This codemod replaces uses of the String.prototype.padLeft method with the built-in String.prototype.padStart method. The goal is to eliminate the reliance on the less common padLeft method, reducing unnecessary dependencies and simplifying the codebase.

Before

javascript
const paddedString = myString.padLeft(5, '0');

After

javascript
const paddedString = myString.padStart(5, '0');

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.