E

e18e/@e18e/global

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

Global Codemod

Introduction

This codemod replaces the usage of global, global/document, and global/window with the standardized globalThis, document, and window identifiers, respectively. This change helps to eliminate unnecessary dependencies and improves the compatibility and readability of the code by leveraging built-in global objects.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.