depanne-pc-utils
v1.0.0
Published
PC diagnostic and troubleshooting utilities for Node.js. Guides at depanne-pc.com
Maintainers
Readme
depanne-pc-utils
PC diagnostic and troubleshooting utilities for Node.js. Get system information, monitor hardware, and diagnose common PC issues.
Full guides available at: depanne-pc.com
Installation
npm install depanne-pc-utilsQuick Start
const {
getSystemInfo,
getCpuInfo,
getMemoryInfo,
getDiskInfo,
getNetworkInterfaces,
checkPort,
checkInternet,
getUptime,
getProcessInfo,
parseBrowserInfo
} = require('depanne-pc-utils');
// Get system information
console.log(getSystemInfo());
// Get memory usage
console.log(getMemoryInfo());
// Check internet connectivity
checkInternet().then(online => {
console.log('Internet:', online ? 'Connected' : 'Offline');
});
// Check if port is open
checkPort(8080).then(open => {
console.log('Port 8080:', open ? 'Open' : 'Closed');
});API Reference
getSystemInfo()
Returns comprehensive system information including platform, architecture, hostname, CPU count, memory, and uptime.
Related guides:
getCpuInfo()
Get detailed CPU information: model, count, speed, and average speed.
Related guides:
getMemoryInfo()
Returns RAM usage statistics including total, free, used memory and usage percentage.
Related guides:
getDiskInfo()
Get disk space information for all drives (Windows/Unix compatible).
Related guides:
getNetworkInterfaces()
Lists all network interfaces with IP addresses, netmasks, and MAC addresses.
Related guides:
checkPort(port, host)
Check if a specific port is open and accessible.
Related guides:
checkInternet()
Verify internet connectivity by testing DNS resolution.
Related guides:
getUptime()
Get system uptime in days, hours, minutes, seconds format.
Related guides:
getProcessInfo()
List all running processes (Windows/Unix compatible).
Related guides:
parseBrowserInfo(userAgent)
Detect browser name and version from User-Agent string.
Related guides:
Common Issues & Solutions
BSOD (Blue Screen of Death)
Gaming Issues
Performance Issues
Features
- ✅ No external dependencies - uses only Node.js built-ins
- ✅ Cross-platform support (Windows, macOS, Linux)
- ✅ Comprehensive system diagnostics
- ✅ Network connectivity checks
- ✅ TypeScript definitions included
- ✅ Linked to detailed depanne-pc.com guides
License
MIT
Support
For detailed troubleshooting guides and solutions, visit depanne-pc.com
Package: depanne-pc-utils v1.0.0 Author: Depanne-PC Team Repository: https://github.com/depanne-pc/depanne-pc-utils
