E

e18e/@e18e/gopd

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

gopd Codemod

Introduction

This codemod replaces instances of the gopd library with native JavaScript functionality. It searches for typeof checks and calls made to gopd and transforms them into equivalent Object.getOwnPropertyDescriptor calls. This transformation helps in reducing dependencies, improving the performance of the codebase, and minimizing bundle sizes.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.