Skip to content

doc: adds mjs examples to `node:child_process`

I've added mjs examples for the child_process documentation.

I've tested every single example (except for the Windows ones because I don't own a Windows machine :frowning_face:) on my machine and they all work/behave as expected.

I've refrained from making any changes to the cjs examples except for the one in child_process.fork(modulePath[, args][, options]) where the require statement was inside a condition. I took the liberty to put the require statement at the top of the example; If you don't like that I can revert that change.

Thanks in advance for all your hard work, I hope this PRs are helpful 😊 (and not bothersome 🙈)

Best regards

Merge request reports

Loading