Nnodejs

nodejs/createCredentials-to-createSecureContext

Handle DEP0010 via transforming `crypto.createCredentials` to `tls.createSecureContext`

transformationmigration
Public
0 downloads
1 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.createCredentials DEP0010

This recipe transforms crypto.createCredentials usage to use modern node:tls methods.

See DEP0010.

Examples

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.