Replace deprecated crypto.fips with crypto.getFips() and crypto.setFips()
Recipe ID
org.openrewrite.node.migrate.crypto.replace-crypto-fipsArtifact@openrewrite/recipes-nodejsReplace 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-fipsIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs