- Node.js installed on your system
- Clone this repository to your local machine or download the files.
- Navigate to the project directory in your terminal.
- Install dependencies by running the command:
npm install
- Start the server by running the command:
node server.js
- The server should now be running on port 9000.
Returns information about the user's CPU and OS.
{
"cpu": [{...}], // Array of CPU information objects
"uptime": 123456, // System uptime in seconds
"machine": "x64", // Machine architecture
"version": "11.0.0", // Node.js version
"userInfo": {...}, // User information object
"type": "Darwin", // OS type
"totalmem": 17179869184, // Total system memory in bytes
"freemem": 581029376, // Free system memory in bytes
"release": "20.6.0", // OS release version
"platform": "darwin", // Platform
"hostname": "localhost", // Hostname
"homedir": "/Users/username", // User's home directory
"arch": "x64" // OS architecture
}
Cross-Origin Resource Sharing (CORS) is enabled for all endpoints, allowing requests from any origin.
- 404 Not Found: Returned when the requested URL is not supported.
- 405 Method Not Allowed: Returned when the HTTP method used is not supported.
- The server listens on port 9000 by default. You can modify the
port
variable inserver.js
to change the port. - The
timeoutDuration
variable inserver.js
determines the maximum delay for simulating asynchronous responses.
This server is designed by Lesuuh (xnight) for demonstration purposes and may not be suitable for production use without further enhancements.