@neotales/is-elevated 0.0.0-alpha.1 → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@ On Unix-like systems this typically means root. On Windows it checks whether the
9
9
 
10
10
  [![JSR](https://jsr.io/badges/@neotales/is-elevated)](https://jsr.io/@neotales/is-elevated)
11
11
  [![npm version](https://badge.fury.io/js/@neotales%2Fis-elevated.svg)](https://badge.fury.io/js/@neotales%2Fis-elevated)
12
- [![GitHub version](https://badge.fury.io/gh/neotales%2Fjs.svg)](https://badge.fury.io/gh/neotales%2Fjs)
12
+ [![GitHub version](https://badge.fury.io/gh/neotales%2Fjs-os.svg)](https://badge.fury.io/gh/neotales%2Fjs-os)
13
13
 
14
14
  ## Documentation
15
15
 
@@ -19,14 +19,9 @@ A list of other modules can be found at [github.com/neotales/js-os](https://gith
19
19
 
20
20
  ## Installation
21
21
 
22
- ```bash
23
- # Deno
22
+ ```sh
24
23
  deno add jsr:@neotales/is-elevated
25
-
26
- # npm from jsr
27
24
  npx jsr add @neotales/is-elevated
28
-
29
- # from npmjs.org
30
25
  npm install @neotales/is-elevated
31
26
  ```
32
27
 
package/esm/ffi_node.js CHANGED
@@ -57,7 +57,7 @@ export function evalIsProcessElevated(cache = true) {
57
57
  }
58
58
  }
59
59
  finally {
60
- advapi32.close();
61
- kernel32.close();
60
+ advapi32.lib.close();
61
+ kernel32.lib.close();
62
62
  }
63
63
  }
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@neotales/is-elevated",
3
- "version": "0.0.0-alpha.1",
4
- "description": "Detect whether the current process is elevated.",
3
+ "version": "0.0.0",
4
+ "description": "isElevated function determines if the current process is running elevated (admin/root) across windows, linux, and darwin platforms.",
5
5
  "keywords": [
6
6
  "admin",
7
7
  "elevated",
8
8
  "root",
9
9
  "std",
10
10
  "sudo",
11
- "windows"
11
+ "windows",
12
+ "linux",
13
+ "darwin",
14
+ "is-elevated"
12
15
  ],
13
16
  "homepage": "https://github.com/neotales/js-os",
14
17
  "bugs": {