Node.js v18.12.1 documentation


Table of contents

Permissions权限#

Permissions can be used to control what system resources the Node.js process has access to or what actions the process can take with those resources. 权限可以用来控制Node.js进程可以访问哪些系统资源,或者该进程可以使用这些资源执行哪些操作。Permissions can also control what modules can be accessed by other modules.权限还可以控制其他模块可以访问哪些模块。

  • Module-based permissions基于模块的权限 control which files or URLs are available to other modules during application execution. 控制在应用程序执行期间哪些文件或URL可用于其他模块。This can be used to control what modules can be accessed by third-party dependencies, for example.例如,这可以用于控制第三方依赖关系可以访问哪些模块。

If you find a potential security vulnerability, please refer to our Security Policy.如果您发现潜在的安全漏洞,请参阅安全政策