Ee18e

e18e/@e18e/clone-regexp

No description available

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

Clone RegExp Codemod

Introduction

This codemod removes the use of the clone-regexp npm module by replacing its functionality with the built-in RegExp constructor. This helps to reduce unnecessary dependencies and improve the performance of the codebase.

Before

javascript

After

javascript

Note: If options were being passed to clone-regexp, please modify the new regular expression accordingly, as indicated by the warning in the console.

Ready to contribute?

Build your own codemod and share it with the community.