@E18e/Has Proto

1.0.5Last update Aug 9, 2024
by@e18e

has-proto Codemod

Introduction

This codemod eliminates the usage of the has-proto npm module by replacing its call expressions with a direct boolean literal true. This helps to reduce unnecessary dependencies and improve the performance of the codebase.

Before

import hasProto from 'has-proto';
const result = hasProto(obj);

After

const result = true;

Build custom codemods

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

background illustrationGet Started Now