Find deprecated crypto.DEFAULT_ENCODING usage

Proprietary

The crypto.DEFAULT_ENCODING property was deprecated in Node.js 10 (DEP0091) and removed in Node.js 20. Each API that accepted an encoding (hash, hmac, cipher, etc.) now requires the encoding to be passed explicitly. Occurrences must be reviewed and fixed by hand.

org.openrewrite.node.migrate.find-crypto-default-encoding
mod run . --recipe=org.openrewrite.node.migrate.find-crypto-default-encoding

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.