doc: createRequire can take import.meta.url directly
This PR updates the createRequire
example in https://nodejs.org/api/esm.html#esm_commonjs_json_and_native_modules to follow the new createRequire
behavior, as opposed to the deprecated createRequireFromPath
behavior. cc @MylesBorins
Checklist
-
documentation is changed or added -
commit message follows commit guidelines