Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-root

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-root - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

4

package.json
{
"name": "is-root",
"version": "0.1.0",
"description": "Check if the process is running as root user. Eg. started with `sudo`.",
"version": "1.0.0",
"description": "Check if the process is running as root user, eg. started with `sudo`.",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "sindresorhus/is-root",

@@ -1,4 +0,4 @@

# is-root [![Build Status](https://travis-ci.org/sindresorhus/is-root.png?branch=master)](http://travis-ci.org/sindresorhus/is-root)
# is-root [![Build Status](https://travis-ci.org/sindresorhus/is-root.svg?branch=master)](https://travis-ci.org/sindresorhus/is-root)
> Check if the process is running as root user. Eg. started with `sudo`.
> Check if the process is running as root user, eg. started with `sudo`.

@@ -8,12 +8,10 @@

Install with [npm](https://npmjs.org/package/is-root)
```sh
$ npm install --save is-root
```
npm install --save is-root
```
## Example
## Usage
```
```sh
$ sudo node index.js

@@ -20,0 +18,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc