Typescript/Remove Console

1.0.1Last update Aug 1, 2024
by@yoshi2no

This codemod removes all console statements from your TypeScript and JavaScript files

Example

Before

const greeting = "hello world!";
console.log("good morning y'all!");
const sayHi = () => {
console.error("oops!");
};

After

const greeting = "hello world!";
const sayHi = () => {};

Build custom codemods

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

background illustrationGet Started Now