Ee18e

e18e/@e18e/string.prototype.substr

No description available

Legacy
e18emodule-replacement
Public
2 downloads
0 stars
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.substr Codemod

Introduction

This codemod replaces occurrences of the String.prototype.substr method with the more modern and preferred String.prototype.substring method. By doing so, it helps streamline the codebase, reduce reliance on deprecated features, and enhance readability.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.