← All recipes
Moderne licensed

Find deprecated punycode module usage

Recipe IDorg.openrewrite.node.migrate.find-punycode-usageArtifact@openrewrite/recipes-nodejs

The punycode built-in module was deprecated in Node.js 21 (DEP0040). Use the userland punycode package from npm or url.domainToASCII/url.domainToUnicode instead.

Single recipeDEP0040Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.node.migrate.find-punycode-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs