String.raw Codemod
Introduction
This codemod replaces the usage of the string.raw package with the built-in String.raw method. By transforming tagged template expressions that utilize string.raw, this codemod helps reduce the number of external dependencies in the codebase and improves performance by leveraging native JavaScript features.
Before
import string from 'string.raw';const result = string.raw`Hello, ${name}!`;
After
const result = String.raw`Hello, ${name}!`;
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community