Nnodejs

nodejs/createCredentials-to-createSecureContext

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

transformationmigrationnodejs
Public
127 executions

Run locally

npx codemod @nodejs/createCredentials-to-createSecureContext

crypto.createCredentials DEP0010

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

See DEP0010.

Examples

diff

Ready to contribute?

Build your own codemod and share it with the community.