Registry
L

deno-replace-window-with-globalThis

No description available

lovelindhoni0 executions

  • Legacy
  • migration
  • Deno
  • global-vars
Connect a repo
npx codemod deno-replace-window-with-globalThis

This codemod transforms instances of the window identifier into globalThis.

Before

ts
const value = window.location.href;

After

ts
const value = globalThis.location.href;

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.