process.assert to node:assert DEP0100
This recipe transforms the usage of process.assert to use node:assert module.
See DEP0100.
Example
Before:
js
After:
js
Additional Notes
This codemod use fs capability to read the package.json file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the assert module.