Skip to main content
This recipe transforms tmpDir function calls to tmpdir to handle Node.js DEP0022.

What It Does

This codemod updates:
  • Function calls from tmpDir() to tmpdir()
  • Import/require statements to use the correct function name

Before/After

Before:
After:

Usage

Run this codemod on your project:
This is a simple naming change where tmpDir() (with capital ā€˜D’) was deprecated in favor of the lowercase tmpdir() to maintain consistency with Node.js naming conventions.