is-root

WebJar for is-root

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

is-root
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

is-root
WebJar for is-root
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/is-root

Скачать is-root

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-root/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-root</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-root/
implementation 'org.webjars.npm:is-root:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-root/
implementation ("org.webjars.npm:is-root:2.0.0")
'org.webjars.npm:is-root:jar:2.0.0'
<dependency org="org.webjars.npm" name="is-root" rev="2.0.0">
  <artifact name="is-root" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-root', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "is-root" % "2.0.0"
[org.webjars.npm/is-root "2.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

is-root

Check if the process is running as root user, for example, one started with sudo

Install

$ npm install is-root

Usage

$ sudo node index.js
// index.js
const isRoot = require('is-root');

isRoot();
//=> true

Related

  • is-elevated - Check if the process is running with elevated privileges (cross-platform)

Версии библиотеки

Версия
2.0.0
1.0.0