← All recipes
Moderne licensed

Replace deprecated crypto.fips with crypto.getFips() and crypto.setFips()

Recipe IDorg.openrewrite.node.migrate.crypto.replace-crypto-fipsArtifact@openrewrite/recipes-nodejs

Replace deprecated crypto.fips property access with crypto.getFips() for reads and crypto.setFips(value) for writes.

Single recipeDEP0093Proprietary

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.crypto.replace-crypto-fips

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

mod config recipes npm install @openrewrite/recipes-nodejs