← All recipes
Moderne licensed

Replace deprecated node:_tls_common and node:_tls_wrap with node:tls

Recipe IDorg.openrewrite.node.migrate.tls.replace-internal-modulesArtifact@openrewrite/recipes-nodejs

Replace deprecated internal TLS module imports require('node:_tls_common') and require('node:_tls_wrap') with the public node:tls module.

Single recipeDEP0192Proprietary

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.tls.replace-internal-modules

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

mod config recipes npm install @openrewrite/recipes-nodejs