@bun-win32/psapi 2.0.0 → 2.0.2
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 +7 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
# bun-psapi
|
|
1
|
+
# @bun-win32/psapi
|
|
2
2
|
|
|
3
3
|
Zero-dependency, zero-overhead Win32 PSAPI bindings for [Bun](https://bun.sh) on Windows.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
`@bun-win32/psapi` exposes the `psapi.dll` exports using [Bun](https://bun.sh)'s FFI. It provides a single class, `Psapi`, which lazily binds native symbols on first use. You can optionally preload a subset or all symbols up-front via `Preload()`.
|
|
8
|
+
|
|
9
|
+
The bindings are strongly typed for a smooth DX in TypeScript.
|
|
8
10
|
|
|
9
11
|
## Features
|
|
10
12
|
|
|
@@ -23,13 +25,13 @@ Zero-dependency, zero-overhead Win32 PSAPI bindings for [Bun](https://bun.sh) on
|
|
|
23
25
|
## Installation
|
|
24
26
|
|
|
25
27
|
```sh
|
|
26
|
-
bun add bun-psapi
|
|
28
|
+
bun add @bun-win32/psapi
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Quick Start
|
|
30
32
|
|
|
31
33
|
```ts
|
|
32
|
-
import Psapi from 'bun-psapi';
|
|
34
|
+
import Psapi from '@bun-win32/psapi';
|
|
33
35
|
|
|
34
36
|
// Optionally bind a subset up-front
|
|
35
37
|
Psapi.Preload(['EnumProcesses', 'GetModuleBaseNameW']);
|
|
@@ -46,7 +48,7 @@ console.log('Processes: %d', count);
|
|
|
46
48
|
|
|
47
49
|
## Examples
|
|
48
50
|
|
|
49
|
-
Run the included
|
|
51
|
+
Run the included examples:
|
|
50
52
|
|
|
51
53
|
```sh
|
|
52
54
|
bun run example # Process enumeration + performance info
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Stev Peifer <stev@bell.net>",
|
|
3
3
|
"bugs": {
|
|
4
|
-
"url": "https://github.com/
|
|
4
|
+
"url": "https://github.com/bun-win32/psapi/issues"
|
|
5
5
|
},
|
|
6
6
|
"description": "Zero-dependency, zero-overhead Win32 PSAPI bindings for Bun (FFI) on Windows.",
|
|
7
7
|
"devDependencies": {
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"typescript": "^5"
|
|
18
18
|
},
|
|
19
19
|
"private": false,
|
|
20
|
-
"homepage": "https://github.com/
|
|
20
|
+
"homepage": "https://github.com/bun-win32/psapi#readme",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git://github.com/
|
|
23
|
+
"url": "git://github.com/bun-win32/psapi.git"
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
|
-
"version": "2.0.
|
|
26
|
+
"version": "2.0.2",
|
|
27
27
|
"main": "./index.ts",
|
|
28
28
|
"keywords": [
|
|
29
29
|
"bun",
|