is-root

WebJar for is-root

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-root
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-root
WebJar for is-root
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download is-root

How to add to project

<!-- 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"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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)

Versions

Version
2.0.0
1.0.0