E

e18e/@e18e/string.prototype.padleft

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.