SpeedUP Health service
This module provides some information about your service health.
# NPMnpm i @speedup/sysinfo-health --save# Yarnyarn install @speedup/sysinfo-health
This module consists of 3 main parts.
- HealthService (which is responsible for retrieving health information from the requested providers).
- InfoProvider (which is responsible for providing health information)
- WebFramework (which is responsible for integrating with the web frameworks).
const serviceHealth = ;const infoProvider =loadDefaultProviders: true;const healthProvider = config infoProvider;// inside your async function, tryconst health = await healthProvider;// returns an object that contains the health information// you can return only the information about specific parts of the hardware/software// by providing the list of modules// built-in info services: CPU, memory, OS, path, uptime, userconst health = await healthProvider;
And you're good to go!