@E18e/Es String Html Methods

1.0.5Last update Aug 9, 2024
by@e18e

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

import { blink, bold } from 'es-string-html-methods';
const str1 = blink('foo');
const str2 = bold('bar');

After

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

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now