Socket
Socket
Sign inDemoInstall

specs_window

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.4.0

bio.md

1

index.js

@@ -16,2 +16,3 @@ const specs = require('./build/Release/specs_window');

MoveMouse: specs.MoveMouse,
getProcesses: specs.GetProcesses,
}

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc