Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
specs_window
Advanced tools
It is a NodeJS module to get hardware and OS informacions.
npm install specs_window
const specs = require('specs_window')
console.log(specs.getProcessorsNumber())
const specs = require('specs_window')
console.log(specs.getPCName())
This func is under maintenance.
const specs = require('specs_window')
console.log(specs.getProcessorArchitecture())
There are two func to get the Total Memory:
const specs = require('specs_window')
console.log(specs.getTotalMemory())
The fist func, getTotalMemory, return the following object:
{
Bytes: 17041244160,
KiloBytes: 16641840,
MegaBytes: 16251.796875,
GigaBytes: 15.870895385742188
}
const specs = require('specs_window')
console.log(specs.getTotalMemoryGB())
The second func, getTotalMemoryGB, return just GB:
15.870895385742188
There are two func to get the Free Memory:
const specs = require('specs_window')
console.log(specs.getFreeMemory())
The first func, getFreeMemory, return the following object:
{
Bytes: 3957870592,
KiloBytes: 3865108,
MegaBytes: 3774.51953125,
GigaBytes: 3.686054229736328
}
const specs = require('specs_window')
console.log(specs.getFreeMemoryGB())
The second func, getFreeMemoryGB, return just GB:
3.686054229736328
This func return all available drive path, include:
Does not work with smarphones, tables, nintendo switch, ...
const specs = require('specs_window')
console.log(specs.getAvailableDrives())
[ 'C:\\', 'G:\\' ]
This func return the Free Memory and Full Memory of Path Drive.
Path Dive is for exemple:
This func can you recive a individual Path Drive or a array with many Path Drive.
const specs = require('specs_window')
const Drives = specs.getAvailableDrives()
console.log(specs.getSizeDrives(Drives))
[
{ FreeMemory: 9531, FullMemory: 425668.99609375 },
{ FreeMemory: -1, FullMemory: -1 }
]
If the func can´t read a Memory of Drive return -1.
This func return a array with all process running in machine.
const specs = require('specs_window')
specs.getProcesses().then((res) => {
res.forEach(element => {console.log(element)});
})
//or:
specs.getProcesses().then((res) => {console.log(res)})
{
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.
The func KillProcesse takes an int as an argument to represent the processe id (PID). In this exemple, I kill Micrsoft Edge processe.
const specs = require('specs_window')
specs.getProcesses().then((res) => {
res.forEach(Processe => {
if(Processe.Name == "msedge.exe")
specs.KillProcesse(Processe.PID).then((kill) => {console.log(kill)})
});
})
Return the mouse position in the screen not in the window.
const specs = require('specs_window')
console.log(specs.getMousePos())
{ X: 1642, Y: 847 }
Yes, you can move de Cursor/Mouse.
const specs = require('specs_window')
specs.MoveMouse(500,900)
Return the Screen Size in pixeis.
const specs = require('specs_window')
console.log(specs.getScreenSize())
{ width: 1920, height: 1080 }
FAQs
It is a NodeJS module to get hardware informacions.
The npm package specs_window receives a total of 2 weekly downloads. As such, specs_window popularity was classified as not popular.
We found that specs_window demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.