E

e18e/@e18e/regexp.prototype.flags

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

RegExp.prototype.flags Codemod

Introduction

This codemod removes the dependency on the regexp.prototype.flags package by eliminating unnecessary import statements and replacing usages of the package with native JavaScript functionality. It not only reduces the bundle size but also enhances performance by relying on built-in language features.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.