is-root:检查进程是否以root用户身份运行,例如,以`sudo'开头的进程

时间:2024-05-21 01:16:24
【文件属性】:

文件名称:is-root:检查进程是否以root用户身份运行,例如,以`sudo'开头的进程

文件大小:4KB

文件格式:ZIP

更新时间:2024-05-21 01:16:24

JavaScript

根 检查进程是否以root用户身份运行,例如,以sudo开头的进程 安装 $ npm install is-root 用法 $ sudo node index.js // index.js import isRoot from 'is-root' ; isRoot ( ) ; //=> true 有关的 -检查进程是否以提升的特权运行(跨平台)


【文件预览】:
is-root-main
----.gitignore(23B)
----package.json(731B)
----.npmrc(19B)
----index.js(87B)
----test.js(240B)
----.github()
--------workflows()
----license(1KB)
----readme.md(405B)
----index.test-d.ts(97B)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(251B)

网友评论