Registry
E

e18e/@e18e/string.prototype.matchall

No description available

e18e36 executions

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

Codemod for Replacing string.prototype.matchall

Introduction

This codemod replaces calls to the string.prototype.matchall npm package with the built-in String.prototype.matchAll method. The goal is to eliminate the dependency on the string.prototype.matchall package, thereby reducing bundle size and enhancing performance.

Before

javascript
import matchAll from 'string.prototype.matchall';

const result = matchAll("test string", /test/g);

After

javascript
const result = "test string".matchAll(/test/g);

Ready to evolve your codebase?

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