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.1.0 to 1.2.0

4

index.js

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

getAvailableDrives: specs.getAvailableDrives,
getSizeDrives: specs.getSizeDrives
getSizeDrives: specs.getSizeDrives,
getMousePos: specs.getMousePos,
getScreenSize: specs.getScreenSize
}
{
"name": "specs_window",
"version": "1.1.0",
"description": "It is a npm module to get hardware informacions.",
"version": "1.2.0",
"description": "It is a NodeJS module to get hardware informacions.",
"main": "index.js",

@@ -15,3 +15,17 @@ "scripts": {

},
"keywords": [],
"keywords": [
"node",
"javascript",
"npm",
"hardware",
"hardware specs",
"windows hardware",
"hardware info",
"windows info",
"windows",
"specs_window",
"specs",
"specs window",
"specs windows"
],
"author": "",

@@ -18,0 +32,0 @@ "license": "ISC",

# Specs for Windows 🪟:
### Installation:
## Installation:

@@ -10,7 +10,198 @@ It is a NodeJS module to get hardware informacions.

### Project info:
- author: Riseghost 👻
- languague: C/C++
## Project info:
- author: Riseghost 👻
- languague: C/C++
- platform support: Windows 🪟
- github: https://github.com/RiseGhost/specs_window
- npm profil: https://www.npmjs.com/~riseghost
### Features:
## Features:
- Get CPU Thread number;
- Get PC Name (Host Name);
- Get CPU Architecture ⚠️;
- Get Total RAM Memory install;
- Get Free RAM Memory;
- Get Available Drives (Units: C:\\, G:\\, F:\\, ...);
- Get Size Drives;
- Get Mouse position;
- Get Screen Size
### Get CPU Threads number 🧠:
````JS
const specs = require('specs_window')
console.log(specs.getProcessorsNumber())
````
### Get PC Name (Host Name) 🖥️:
````JS
const specs = require('specs_window')
console.log(specs.getPCName())
````
### Get CPU Architecture ⚠️:
This func is under maintenance.
````JS
const specs = require('specs_window')
console.log(specs.getProcessorArchitecture())
````
### Get Total RAM Memory install 🗄️:
There are two func to get the Total Memory:
- getTotalMemory()
- getTotalMemoryGB()
##### getTotalMemory():
````JS
const specs = require('specs_window')
console.log(specs.getTotalMemory())
````
The fist func, getTotalMemory, return the following object:
````JS
{
Bytes: 17041244160,
KiloBytes: 16641840,
MegaBytes: 16251.796875,
GigaBytes: 15.870895385742188
}
````
##### getTotalMemoryGB():
````JS
const specs = require('specs_window')
console.log(specs.getTotalMemoryGB())
````
The second func, getTotalMemoryGB, return just GB:
````JS
15.870895385742188
````
### Get Free RAM Memory 🗄️🆓:
There are two func to get the Free Memory:
- getFreeMemory()
- getFreeMemoryGB()
##### getFreeMemory():
````JS
const specs = require('specs_window')
console.log(specs.getFreeMemory())
````
The first func, getFreeMemory, return the following object:
````JS
{
Bytes: 3957870592,
KiloBytes: 3865108,
MegaBytes: 3774.51953125,
GigaBytes: 3.686054229736328
}
````
#### getFreeMemoryGB():
````JS
const specs = require('specs_window')
console.log(specs.getFreeMemoryGB())
````
The second func, getFreeMemoryGB, return just GB:
````JS
3.686054229736328
````
### Get Available Drive ☑️💿:
This func return __all__ available drive path, include:
- Internal drives:
- Hard disk;
- SSD
- External drives:
- pendrives;
- external disk (HD or SSD)
- ...
Does not work with smarphones, tables, nintendo switch, ...
````JS
const specs = require('specs_window')
console.log(specs.getAvailableDrives())
````
````JS
[ 'C:\\', 'G:\\' ]
````
### Get Size Drives 🗄️💿:
This func return the Free Memory and Full Memory of Path Drive.
Path Dive is for exemple:
- C:\\\\
- G:\\\\
- F:\\\\
- ....
This func can you recive a individual Path Drive or a array with many Path Drive.
````JS
const specs = require('specs_window')
const Drives = specs.getAvailableDrives()
console.log(specs.getSizeDrives(Drives))
````
````JS
[
{ FreeMemory: 9531, FullMemory: 425668.99609375 },
{ FreeMemory: -1, FullMemory: -1 }
]
````
If the func can´t read a Memory of Drive return -1.
### Get Mouse position 🐁🗺️:
Return the mouse position in the screen not in the window.
````JS
const specs = require('specs_window')
console.log(specs.getMousePos())
````
````JS
{ X: 1642, Y: 847 }
````
### Get Screen Size 📺📐:
Return the Screen Size in pixeis.
````JS
const specs = require('specs_window')
console.log(specs.getScreenSize())
````
````JS
{ width: 1920, height: 1080 }
````

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