Nnodejs

nodejs/util-extend-to-object-assign

Handle DEP0060 by replacing `util._extend()` with `Object.assign()`.

transformationmigration
Public
62 executions

Run locally

npx codemod @nodejs/util-extend-to-object-assign

util._extend DEP0060

This recipe transforms the usage of deprecated util._extend() to use Object.assign().

See DEP0060.

Example

diff

Ready to contribute?

Build your own codemod and share it with the community.