@E18e/Xtend

/icons/calendar.svg

Last update

Aug 9, 2024

Xtend Codemod

Introduction

This codemod eliminates the xtend npm module by refactoring code to use the built-in JavaScript spread operator. This reduces the dependency on an external package, thereby decreasing the bundle size and improving the performance of the codebase.

Before

import xtend from 'xtend';
const merged = xtend(object1, object2);

After

const merged = { ...object1, ...object2 };

Build custom codemods

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

background illustrationGet Started Now