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

sudo-block

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sudo-block - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

2

index.d.ts
/**
Block users from running your app with root permissions. When a file containing this function is run with root permissions it will exit and show an error message telling the user how to fix the problem, so they don't have to run it with `sudo`.
@param message - Custom message.
@param message - A custom message.

@@ -6,0 +6,0 @@ @example

@@ -0,1 +1,2 @@

import process from 'node:process';
import chalk from 'chalk';

@@ -2,0 +3,0 @@ import isRoot from 'is-root';

{
"name": "sudo-block",
"version": "4.0.0",
"version": "5.0.0",
"description": "Block users from running your app with root permissions",

@@ -14,5 +14,8 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -38,13 +41,13 @@ "scripts": {

"dependencies": {
"chalk": "^4.1.1",
"is-docker": "^2.2.1",
"chalk": "^5.3.0",
"is-docker": "^3.0.0",
"is-root": "^3.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"ava": "^5.3.1",
"import-fresh": "^3.3.0",
"sinon": "^10.0.0",
"tsd": "^0.14.0",
"xo": "^0.39.1"
"sinon": "^15.2.0",
"tsd": "^0.29.0",
"xo": "^0.56.0"
}
}

@@ -9,5 +9,5 @@ # sudo-block

```sh
npm install sudo-block
```
$ npm install sudo-block
```

@@ -32,2 +32,2 @@ ## Usage

Custom message.
A custom message.
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