3 ms·
> Author here! I didn't even know that existed. Thanks for the link! You're welcome! To be fair, Policies are still experimental. That's probably why they didn
by mark_and_sweep 5y ago
> Author here! I didn't even know that existed. Thanks for the link!
You're welcome! To be fair, Policies are still experimental. That's probably why they didn't get much press despite being in Node since v11.
> I want to explicitly give permission to a library, not to the process as a whole.
You can enable/change/disable imports for a given library, though this might be quite cumbersome for a wide or deep dependency tree.