Node actually took that from Deno, they do have a permission model now: https://nodejs.org/api/permissions.html