← All recipes
Moderne licensed

Replace deprecated node:_stream_* with node:stream

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

Replace deprecated internal stream module imports like require('node:_stream_readable') with the public node:stream module.

Single recipeDEP0193Proprietary

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

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

mod config recipes npm install @openrewrite/recipes-nodejs