Nnodejs

nodejs/crypto-fips-to-getFips

Handle DEP0093 via transforming `crypto.fips` to `crypto.getFips()` and `crypto.setFips()`

transformationmigration
Public
2 downloads
3 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

crypto.fips DEP0093

This recipe transforms the usage from the deprecated crypto.fips to crypto.getFips() and crypto.setFips().

See DEP0093.

Examples

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.