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

is-admin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-admin - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

11

index.js

@@ -9,4 +9,11 @@ 'use strict';

// http://stackoverflow.com/a/11995662/64949
return execa('net.exe', ['session']).then(() => true).catch(() => false);
// http://stackoverflow.com/a/21295806/1641422
return execa('fsutil', ['dirty', 'query', '%systemdrive%']).then(() => true).catch(error => {
if (error.code === 'ENOENT') {
// http://stackoverflow.com/a/28268802
return execa('fltmc').then(() => true).catch(() => false);
}
return false;
});
};

7

package.json
{
"name": "is-admin",
"version": "2.0.0",
"version": "2.1.0",
"description": "Check if the process is running as Administrator on Windows",

@@ -38,3 +38,3 @@ "license": "MIT",

"dependencies": {
"execa": "^0.4.0"
"execa": "^0.6.1"
},

@@ -44,6 +44,3 @@ "devDependencies": {

"xo": "*"
},
"xo": {
"esnext": true
}
}

@@ -29,3 +29,3 @@ # is-admin

Returns a Promise for a boolean indicating if the process is running as Administrator.
Returns a `Promise<boolean>` indicating whether the process is running as Administrator.

@@ -32,0 +32,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