specs_window
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -16,2 +16,3 @@ const specs = require('./build/Release/specs_window'); | ||
MoveMouse: specs.MoveMouse, | ||
getProcesses: specs.GetProcesses, | ||
} |
{ | ||
"name": "specs_window", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "It is a NodeJS module to get hardware informacions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,3 @@ # Specs for Windows 🪟: | ||
- Get Size Drives; | ||
- Get Processes; | ||
- Get Cursor/Mouse position; | ||
@@ -182,2 +183,40 @@ - Move Cursor/Mouse; | ||
### Get Processes 🌀: | ||
This func return a array with all process running in machine. | ||
````JS | ||
const specs = require('specs_window') | ||
Object.values(specs.getProcesses()).forEach((Processe) => { | ||
console.log(Processe) | ||
}) | ||
//or: | ||
console.log(specs.getProcesses()) | ||
```` | ||
````JS | ||
{ | ||
PID: 23060, | ||
Name: 'Code.exe', | ||
MemoryCommit: 26976, | ||
MemoryWorkingSet: 91436 | ||
} | ||
{ | ||
PID: 46872, | ||
Name: 'firefox.exe', | ||
MemoryCommit: 171060, | ||
MemoryWorkingSet: 212420 | ||
} | ||
{ | ||
PID: 85324, | ||
Name: 'firefox.exe', | ||
MemoryCommit: 26820, | ||
MemoryWorkingSet: 29392 | ||
} | ||
```` | ||
If doesn´t get the Processe Memory, return -1. | ||
### Get Cursor/Mouse position 🐁🗺️: | ||
@@ -184,0 +223,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6210711
30
15
257