Registry
E

e18e/@e18e/es-string-html-methods

No description available

e18e39 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/es-string-html-methods

es-string-html-methods Codemod

Introduction

This codemod replaces usage of deprecated string HTML methods from the es-string-html-methods package with their corresponding member method calls directly on string instances. By doing this, it eliminates unnecessary imports and reduces dependencies, thereby optimizing bundle size and performance.

Before

javascript
import { blink, bold } from 'es-string-html-methods';

const str1 = blink('foo');
const str2 = bold('bar');

After

javascript
const str1 = 'foo'.blink();
const str2 = 'bar'.bold();

Ready to evolve your codebase?

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