{"_id":"node-system-stats","_rev":"17-2c56a08cf95331a2a9171f6afe2939eb","name":"node-system-stats","dist-tags":{"latest":"2.0.5"},"versions":{"1.1.0":{"name":"node-system-stats","version":"1.1.0","license":"MIT","_id":"node-system-stats@1.1.0","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"dist":{"shasum":"efb01ed653fd0b4a9292551e5ae1b424d535e6cd","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.1.0.tgz","fileCount":3,"integrity":"sha512-x0dDhrWh/V16RDFBAMkzQ1CcU2LDpqOL0X0f/c5fArYtKFMK3xM71iLPtoXgsoBRk23vAZPao0XukP1h0puDoA==","signatures":[{"sig":"MEUCIQCTLIn9HdKGus/vobFGbcqHV93wE4iiuHzuUGdtI+yWBQIgUsG1yhFIiLGS3p6+sl6pVzsQkcyeAbitaOZwQFj38Vs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5677},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f36789dd13440e8ff721d499479c850a3549317d","_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.1.0_1689542414502_0.9038363279281147","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"node-system-stats","version":"1.1.2","license":"MIT","_id":"node-system-stats@1.1.2","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"dist":{"shasum":"fb07f6765b7cb52c6c7351a5a4a3d7ead555e0d3","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.1.2.tgz","fileCount":3,"integrity":"sha512-3d+P/o1WaQiFXXHtwhKwfkvs+ivmdhJ8kbRt8IxdZFcuyIu35L2AbpI1ku6hz7ng2gQ5uPIwWLEusjLdV/PTow==","signatures":[{"sig":"MEYCIQD6u9DxIxkBDCzW7ebVYiobEwHdm/ZU1JJtJUe3xD1edgIhAJTUmhSbKdQrn2ImMisofiWbXY82IW30aKaqqJSZizlD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5677},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f36789dd13440e8ff721d499479c850a3549317d","_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.1.2_1689542538375_0.14449973912894776","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"node-system-stats","version":"1.2.0","license":"MIT","_id":"node-system-stats@1.2.0","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"dist":{"shasum":"4e27e852b62d7dbe7d1acd41a90b08d3a04dc8af","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.0.tgz","fileCount":7,"integrity":"sha512-HHwg2eRZDvrOk3jBSYHiU7mvwMcR7yDemm07URUJA0ZklwVvdmRKlC/fmfyhtb9fveHJl5RIrIT3y0X+nkjriQ==","signatures":[{"sig":"MEYCIQCQWNPWUA32aIOY6+h0T0pt8IOQJY8JYG5/LThwgBgH/gIhAMTKz5JV3kOiIlhLWvnlTYTwecGzgX8laC5q2apqO/BN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14583},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f36789dd13440e8ff721d499479c850a3549317d","_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.0_1689542650288_0.011432861595077393","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"node-system-stats","version":"1.2.1","keywords":["systemstats","cpu","metrics","info"],"license":"MIT","_id":"node-system-stats@1.2.1","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"f75829c7354169947aba6f674bf967cc2946ee66","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.1.tgz","fileCount":7,"integrity":"sha512-/eEE31249GLaYyrPSEqcA2pv/glCV16J4Z1F/504rMsK0nFM06isEb3yo8DxzpcmRzKxLmKHEjGlQecGGBrgoQ==","signatures":[{"sig":"MEUCIHHBCaGVJ6ThepW6dOMiiOkLvcUldN1OBs1gsgg0WN2jAiEAlyBsiSBjZkyww5zmS9qQzSasLGGv4FAn21amsJ14EF4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14930},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"f36789dd13440e8ff721d499479c850a3549317d","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.1_1689542953990_0.8570725126555685","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"node-system-stats","version":"1.2.2","keywords":["systemstats","cpu","metrics","info"],"license":"MIT","_id":"node-system-stats@1.2.2","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"1ec526dfd2af1915d49b059833930d263e14db9c","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.2.tgz","fileCount":9,"integrity":"sha512-SBMCyKE1bGlmLGRSFYzRnDpxCwEvd4wwssanPrxqBWMxhSgW9aR38avuz+jaghhyPXYd9p1uCcPUGWdatNqMzw==","signatures":[{"sig":"MEQCID+qHHgtf5e0zHU7BmgNA5L/owEF3scNLwHgkGE9vhLgAiAObfSv4mDaUiYpjwwtrHRVpUa5+R+Y0V+8qsAFT4jX5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18517},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"f36789dd13440e8ff721d499479c850a3549317d","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.2_1689550932579_0.506677215825849","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"node-system-stats","version":"1.2.3","keywords":["systemstats","cpu","metrics","info"],"license":"MIT","_id":"node-system-stats@1.2.3","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"07cd68c3f277e8d48c1aa130bfbe6f6d23768a0b","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.3.tgz","fileCount":9,"integrity":"sha512-M8zkdrAgqm4ei4QtGBnxq6/ok8iQs0CfNiAFapde5UizhIrDXygEXFAslJmafd2jqd9zk+ehePQyVdRlJ7b22g==","signatures":[{"sig":"MEYCIQC2eBqQKKp4rdjkORaVrxxq09dAOmg8TB8Rm3op76EbUwIhAJqGO9LSYhS6YYZIJCorW+h88v7ZEIPAdJ8DK0V51+2L","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18461},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"58a0054063c5d51313f5b24f0ced4efed80cf176","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","dependencies":{"typedoc":"^0.24.8"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.3_1689551968109_0.611207176268324","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"node-system-stats","version":"1.2.4","keywords":["systemstats","cpu","metrics","info"],"license":"MIT","_id":"node-system-stats@1.2.4","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"9569610a8ed56135d84cd355e2d4e550fd8aa750","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.4.tgz","fileCount":9,"integrity":"sha512-RzIIMba/nhUQO3YCFE0OeDv+OWhZBFWr28Aa10/QDIS/yGSrGXB5RTs7hAZUDwuNVCD5KM0eBTgQBqb7ySpykg==","signatures":[{"sig":"MEUCIHfqH/t4HzNYcr1KLocErymmRonHllTifoUrT5nEo2LEAiEA6HQ0HVtfNAbjHcyrvXiukc8oy0j6Iv4J/JlGFYI5IUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18431},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"b758c91cf53050c5d12ebf7832316853365665d7","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.4_1689597101574_0.979244255116507","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"node-system-stats","version":"1.2.5","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory"],"license":"MIT","_id":"node-system-stats@1.2.5","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"2ce4e3ee92cc8d7a7068cda85b08a2ccf2c6ffc7","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.5.tgz","fileCount":9,"integrity":"sha512-0o+iVDiAwFnUl1wuS35mo8PLSS90OZDnBUmo57ztGSVzYeAYlgeNSi8n/lZkguldhuEsTRmLspP/7e5zbOW17g==","signatures":[{"sig":"MEUCIHkWIUX2cndL+UdO6zgxTjSrx0A3GbsPuHCAOMGKtLF6AiEAj7WJMzqjpLIaQuAELRVm6cErqmbohWQKCVXPMqeiuMM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20476},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"994ce503aeeede54cf87ba7d939dbeb20a5eb50b","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.5_1689712448348_0.8000993564345096","host":"s3://npm-registry-packages"}},"1.2.6":{"name":"node-system-stats","version":"1.2.6","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory"],"license":"MIT","_id":"node-system-stats@1.2.6","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"9b5988eb05ae6548478811591593f849a72f7805","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.6.tgz","fileCount":9,"integrity":"sha512-PTqnDIWCaRDPOQ/c4w+JlRp4c0sABGWMxMA1zgWo8mk2r7JJM9y030WxLUsqALKH6g6DOig6/xMzd+1CAEua2A==","signatures":[{"sig":"MEUCIQCIR0YJO6SYZ6HzH866J7cWTmgNgfsmknjO/lDduGa7JwIgDI2CcKm9ioTgw8OIfER+MDOBgsckBtAebAdAZ3Cqkz0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21798},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"1876103ee174742b21799b50432fe8794f5d1730","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.6_1689719386627_0.5672005029407823","host":"s3://npm-registry-packages"}},"1.2.7":{"name":"node-system-stats","version":"1.2.7","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory"],"license":"MIT","_id":"node-system-stats@1.2.7","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"6f6dc85a376595e3fc0c93787f5ee26e70dbddde","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.2.7.tgz","fileCount":12,"integrity":"sha512-mmwDOrcXsyVxllhgY8UxzonFwk7pQ1UMegFRlsm1+9ABcV3uHcuASEmu0jtqgmxbH0t4x/hoJNhVh30j69+cPQ==","signatures":[{"sig":"MEUCIQD4OKSf4cm/KtsRuuWhuvOJrgUCIyzcZ/YQjSSJ1ExTIAIgUlBvaSzrLzGx1xQRWiyC2r7NT1KdvR0x38+qOA0+IZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26141},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"c1cfb3adc6425c01e761cc5e6f5eb3e9de9f1bac","private":false,"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"9.6.5","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.2.7_1690128348178_0.4728252576421079","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"node-system-stats","version":"1.3.0","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory"],"license":"MIT","_id":"node-system-stats@1.3.0","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"4f6f830b161dfe429635a5b692a0c0af26ad9620","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-1.3.0.tgz","fileCount":13,"integrity":"sha512-T5ve50fR+yTh8H3SlQ+k6nJUea5wXnf5jF0OXS5Z97+QWp1gQnQ23seirKftu8+ePzIMDfklmugXJ9qgCu0WLA==","signatures":[{"sig":"MEYCIQD2isieYk7vJHMLIL9mejaYrCNxFs4OyEGZAbVq5i3lqgIhAIDUZq52vkZIyF5YK3R2C3SPeDaoN57c+hvBssYnto7D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27673},"main":"lib/index.js","types":"lib/index.d.ts","module":"dist/index.mjs","engines":{"node":">=16.9.0"},"exports":{".":{"import":"./lib/index.mjs","require":"./lib/index.js"}},"gitHead":"0b7a60aaa86f1a1daff55d98f957f7abbb31a24b","private":false,"scripts":{"build":"tsc && npm run build:esm","build:esm":"gen-esm-wrapper lib/index.js lib/index.mjs","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","prepublishOnly":"npm run build:esm","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.3.0","description":"This package shows you the system statistics, with wonderful type declartions.","directories":{},"_nodeVersion":"20.8.0","_hasShrinkwrap":false,"devDependencies":{"typedoc":"^0.25.12","@types/node":"^20.11.28","gen-esm-wrapper":"^1.1.3","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_1.3.0_1710790636095_0.44084519489327656","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"node-system-stats","version":"2.0.0","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"license":"MIT","_id":"node-system-stats@2.0.0","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"b265ffea57b70761be93426c523a6d4794234197","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.0.tgz","fileCount":73,"integrity":"sha512-ZAR1mehOgZVxUaUiD1kSGmGjAdGQ1lmTpiFvaqCnh16XPvd6AF37+ii8q0kAuBGn0sCCK9dK2KB8fCdQZHgSeQ==","signatures":[{"sig":"MEUCIQDoh++vmP2KR//KuIayirZtJJDUl7ObZVtxvPYEL55ESQIga5LY2kKPRUw9Hea3tAnM6DrAtLtq2V2OELjyD28u+4k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":444223},"main":"./lib/cjs/index.js","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=16.9.0"},"exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"./cpu":{"types":"./lib/types/modules/cpu.d.ts","import":"./lib/esm/modules/cpu.js","require":"./lib/cjs/modules/cpu.js"},"./disk":{"types":"./lib/types/modules/disk.d.ts","import":"./lib/esm/modules/disk.js","require":"./lib/cjs/modules/disk.js"},"./memory":{"types":"./lib/types/modules/memory.d.ts","import":"./lib/esm/modules/memory.js","require":"./lib/cjs/modules/memory.js"},"./battery":{"types":"./lib/types/modules/battery.d.ts","import":"./lib/esm/modules/battery.js","require":"./lib/cjs/modules/battery.js"},"./monitor":{"types":"./lib/types/modules/monitor.d.ts","import":"./lib/esm/modules/monitor.js","require":"./lib/cjs/modules/monitor.js"},"./network":{"types":"./lib/types/modules/network.d.ts","import":"./lib/esm/modules/network.js","require":"./lib/cjs/modules/network.js"},"./process":{"types":"./lib/types/modules/process.d.ts","import":"./lib/esm/modules/process.js","require":"./lib/cjs/modules/process.js"}},"gitHead":"0b7a60aaa86f1a1daff55d98f957f7abbb31a24b","private":false,"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm && npm run build:types","clean":"rimraf lib","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","build:types":"tsc --project tsconfig.types.json","prepublishOnly":"npm run build","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.8.1","description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typedoc":"^0.25.12","typescript":"^5.2.2","@types/node":"^20.11.28","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_2.0.0_1744879222244_0.3033179721510091","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"node-system-stats","version":"2.0.1","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"license":"MIT","_id":"node-system-stats@2.0.1","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"77446b9ad94ce41d3c8287c8bf5a4d9074869443","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.1.tgz","fileCount":73,"integrity":"sha512-5MG/435oImyPWGI01dA+BI1rQcrUVVODqzCCILYaHVnyyXy67qkSe+a0Pchv8/0Tnz5gvvtnRZQyS+EjkAI8sw==","signatures":[{"sig":"MEYCIQCF9Sx21BDwdAhWWrLiUXFSLgUDAxAknZIq+tN6BhrYlgIhAPf3G5qqllCL6xOwaCjJDdtNtUZmwCZyCVcYReYx1BNx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":446175},"main":"./lib/cjs/index.js","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=16.9.0"},"exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"./cpu":{"types":"./lib/types/modules/cpu.d.ts","import":"./lib/esm/modules/cpu.js","require":"./lib/cjs/modules/cpu.js"},"./disk":{"types":"./lib/types/modules/disk.d.ts","import":"./lib/esm/modules/disk.js","require":"./lib/cjs/modules/disk.js"},"./memory":{"types":"./lib/types/modules/memory.d.ts","import":"./lib/esm/modules/memory.js","require":"./lib/cjs/modules/memory.js"},"./battery":{"types":"./lib/types/modules/battery.d.ts","import":"./lib/esm/modules/battery.js","require":"./lib/cjs/modules/battery.js"},"./monitor":{"types":"./lib/types/modules/monitor.d.ts","import":"./lib/esm/modules/monitor.js","require":"./lib/cjs/modules/monitor.js"},"./network":{"types":"./lib/types/modules/network.d.ts","import":"./lib/esm/modules/network.js","require":"./lib/cjs/modules/network.js"},"./process":{"types":"./lib/types/modules/process.d.ts","import":"./lib/esm/modules/process.js","require":"./lib/cjs/modules/process.js"}},"gitHead":"0b7a60aaa86f1a1daff55d98f957f7abbb31a24b","private":false,"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm && npm run build:types","clean":"rimraf lib","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","build:types":"tsc --project tsconfig.types.json","prepublishOnly":"npm run build","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.8.1","description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typedoc":"^0.25.12","typescript":"^5.2.2","@types/node":"^20.11.28","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_2.0.1_1744880093552_0.4826363609600022","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"node-system-stats","version":"2.0.2","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"license":"MIT","_id":"node-system-stats@2.0.2","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"66162c23aeb013abfe0c8d12f8bd3d2e9f09d4eb","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.2.tgz","fileCount":73,"integrity":"sha512-kzColMOA00Qw8s88iedc57la491Qou/CIJ7REBdbG8VSM/QHqUW+jLnR+m85jyhnr01MTxa8r9imv7NToi9U5w==","signatures":[{"sig":"MEQCIDpm4VzfcpI++dS75H1w3FivtCmc/8jLr1cM1rm/mYZVAiB79wkU/a2OcSHYAC4+B5dCpFXEh8QrlyfuhcxWZGXf2A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":446209},"main":"./lib/cjs/index.js","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=16.9.0"},"exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"./cpu":{"types":"./lib/types/modules/cpu.d.ts","import":"./lib/esm/modules/cpu.js","require":"./lib/cjs/modules/cpu.js"},"./disk":{"types":"./lib/types/modules/disk.d.ts","import":"./lib/esm/modules/disk.js","require":"./lib/cjs/modules/disk.js"},"./memory":{"types":"./lib/types/modules/memory.d.ts","import":"./lib/esm/modules/memory.js","require":"./lib/cjs/modules/memory.js"},"./battery":{"types":"./lib/types/modules/battery.d.ts","import":"./lib/esm/modules/battery.js","require":"./lib/cjs/modules/battery.js"},"./monitor":{"types":"./lib/types/modules/monitor.d.ts","import":"./lib/esm/modules/monitor.js","require":"./lib/cjs/modules/monitor.js"},"./network":{"types":"./lib/types/modules/network.d.ts","import":"./lib/esm/modules/network.js","require":"./lib/cjs/modules/network.js"},"./process":{"types":"./lib/types/modules/process.d.ts","import":"./lib/esm/modules/process.js","require":"./lib/cjs/modules/process.js"}},"gitHead":"300712d9dd2e1d4e8332dc88f309df1be45dae32","private":false,"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm && npm run build:types","clean":"rimraf lib","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","build:types":"tsc --project tsconfig.types.json","prepublishOnly":"npm run build","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.8.1","description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typedoc":"^0.25.12","typescript":"^5.2.2","@types/node":"^20.11.28","gen-esm-wrapper":"^1.1.3","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_2.0.2_1744880860309_0.7550632924044758","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"node-system-stats","version":"2.0.3","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"license":"MIT","_id":"node-system-stats@2.0.3","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"e01ccafbed4632733ae8c9c55e04986a89878fd0","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.3.tgz","fileCount":53,"integrity":"sha512-f+vOEPmXm90nJWYWh5lRgr+FfHDNvIuVR5I+ErQysQsnqndm9MhJ1oxAL/IcwybUtEveN6rpB2hgg0o1kFeGhg==","signatures":[{"sig":"MEQCIBvVbpwnO/bavrwkExPV4T5H9NZdygkg2Dd5xyvUl3KdAiBecPrnNuuLuZkfvVUYeYxc3x6mkpnGzAVilb4yCim1ag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255377},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib/index.mjs","engines":{"node":">=16.9.0"},"exports":{".":{"types":"./lib/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"}},"gitHead":"36e39af9c8b01d3ac0f78f8cafee2168ad30053d","private":false,"scripts":{"build":"npm run clean && tsc && npm run build:esm","clean":"rimraf lib","build:esm":"npm run create-wrappers","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","prepublishOnly":"npm run build","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand","create-wrappers":"gen-esm-wrapper lib/index.js lib/index.mjs && gen-esm-wrapper lib/modules/cpu.js lib/modules/cpu.mjs && gen-esm-wrapper lib/modules/memory.js lib/modules/memory.mjs && gen-esm-wrapper lib/modules/disk.js lib/modules/disk.mjs && gen-esm-wrapper lib/modules/network.js lib/modules/network.mjs && gen-esm-wrapper lib/modules/process.js lib/modules/process.mjs && gen-esm-wrapper lib/modules/battery.js lib/modules/battery.mjs && gen-esm-wrapper lib/modules/monitor.js lib/modules/monitor.mjs"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.8.1","description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typedoc":"^0.25.12","typescript":"^5.2.2","@types/node":"^20.11.28","gen-esm-wrapper":"^1.1.3","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_2.0.3_1744881398442_0.5344307772104298","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"node-system-stats","version":"2.0.4","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"license":"MIT","_id":"node-system-stats@2.0.4","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"homepage":"https://github.com/Joniii11/node-system-stats#readme","bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"dist":{"shasum":"555ca67dd0fee396d079f810453e3692db833ee6","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.4.tgz","fileCount":46,"integrity":"sha512-Lga5+X1hzkSKZHmNeQ12wWMuUf6D2yBFMyHOMovTqk6GQToWjqIIn1hznK/ar46DLD6KEb2qCjXJMWTR2tl7Ag==","signatures":[{"sig":"MEYCIQDU15b6kVU8Tb4cv2sNswfWhA7AZC/h8BLiRcZh+Duw9wIhAKoSjWL5K9Dwwg4ax4huamaFG1+GRyL0XyCP5lU764CX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252508},"main":"./lib/index.js","types":"./lib/index.d.ts","module":"./lib/index.mjs","engines":{"node":">=16.9.0"},"exports":{".":{"types":"./lib/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"}},"gitHead":"c5abc1eee7f3721bad16408d4e61fa59a21ed3dd","private":false,"scripts":{"build":"npm run clean && tsc && npm run build:esm","clean":"rimraf lib","build:esm":"npm run create-wrappers","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","prepublishOnly":"npm run build","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand","create-wrappers":"gen-esm-wrapper lib/index.js lib/index.mjs"},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"repository":{"url":"git+https://github.com/Joniii11/node-system-stats.git","type":"git"},"_npmVersion":"10.8.1","description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typedoc":"^0.25.12","typescript":"^5.2.2","@types/node":"^20.11.28","gen-esm-wrapper":"^1.1.3","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/node-system-stats_2.0.4_1744886720818_0.5309342345717158","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"node-system-stats","version":"2.0.5","private":false,"description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","main":"./lib/index.js","module":"./lib/index.mjs","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/index.mjs","require":"./lib/index.js","types":"./lib/index.d.ts"}},"scripts":{"clean":"rimraf lib","build":"npm run clean && tsc && npm run build:esm","build:esm":"npm run create-wrappers","create-wrappers":"gen-esm-wrapper lib/index.js lib/index.mjs","build:docs":"npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out docs ./src/index.ts","build:docs.json":"npx typedoc --json docs/docs.json src/. --entryPointStrategy expand","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/Joniii11/node-system-stats.git"},"bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"engines":{"node":">=16.9.0"},"keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"devDependencies":{"@types/node":"^20.11.28","gen-esm-wrapper":"^1.1.3","rimraf":"^5.0.5","typedoc":"^0.25.12","typedoc-plugin-markdown":"^3.17.1","typedoc-plugin-missing-exports":"^2.2.0","typescript":"^5.2.2"},"license":"MIT","_id":"node-system-stats@2.0.5","gitHead":"c5abc1eee7f3721bad16408d4e61fa59a21ed3dd","homepage":"https://github.com/Joniii11/node-system-stats#readme","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-DqHfiUsfCDPyZtd0N5GSpZujqjlA98KfhhF/Ir3ze5sy9uHB0KlsfR20KOQT4E4os6FPYE+vXHUY2acoDwZqTA==","shasum":"441f84cf5c56874ebd4301a581fd3926dcd6dc01","tarball":"https://registry.npmjs.org/node-system-stats/-/node-system-stats-2.0.5.tgz","fileCount":46,"unpackedSize":252985,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDUyPJlSjWK9CWu6awK/pQtHJ1rMY+2+24hcgjQcgHAOgIhAPG5IQCfgPGMvifMHVqlkxQq41g+IzAv3R6CTxAqY2Lt"}]},"_npmUser":{"name":"joniii11","email":"jonasdimpfl@gmail.com"},"directories":{},"maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-system-stats_2.0.5_1744887652972_0.12903723545029955"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-16T21:20:14.502Z","modified":"2025-04-17T11:00:53.319Z","1.1.0":"2023-07-16T21:20:14.644Z","1.1.2":"2023-07-16T21:22:18.555Z","1.2.0":"2023-07-16T21:24:10.471Z","1.2.1":"2023-07-16T21:29:14.180Z","1.2.2":"2023-07-16T23:42:12.760Z","1.2.3":"2023-07-16T23:59:28.299Z","1.2.4":"2023-07-17T12:31:41.778Z","1.2.5":"2023-07-18T20:34:08.557Z","1.2.6":"2023-07-18T22:29:46.841Z","1.2.7":"2023-07-23T16:05:48.401Z","1.3.0":"2024-03-18T19:37:16.250Z","2.0.0":"2025-04-17T08:40:22.404Z","2.0.1":"2025-04-17T08:54:53.747Z","2.0.2":"2025-04-17T09:07:40.498Z","2.0.3":"2025-04-17T09:16:38.665Z","2.0.4":"2025-04-17T10:45:21.022Z","2.0.5":"2025-04-17T11:00:53.157Z"},"bugs":{"url":"https://github.com/Joniii11/node-system-stats/issues"},"license":"MIT","homepage":"https://github.com/Joniii11/node-system-stats#readme","keywords":["systemstats","cpu","metrics","info","stats","statistics","usage","percentage","percent","cores","mhz","clock","speed","memory","monitoring","disk","drive","network","bandwidth","traffic","process","battery","temperature","system-monitor","diagnostics","performance"],"repository":{"type":"git","url":"git+https://github.com/Joniii11/node-system-stats.git"},"description":"Comprehensive library for monitoring system statistics including CPU, memory, disk, network, battery, and process information with time-series monitoring","maintainers":[{"name":"joniii11","email":"jonasdimpfl@gmail.com"}],"readme":"[![github actions][actions-image]][actions-url]\r\n\r\n# Node-System-Stats v2.0.0\r\n\r\nA comprehensive library for monitoring system statistics in Node.js applications. This library provides detailed information about CPU, memory, disk, network, battery, and running processes.\r\n\r\n**Key Features:**\r\n- CPU usage monitoring with per-core statistics\r\n- Memory usage tracking\r\n- Disk usage information\r\n- Network traffic monitoring\r\n- Battery status tracking\r\n- Process monitoring\r\n- CPU temperature readings\r\n- Real-time system monitoring with history tracking\r\n\r\n## Documentation\r\n\r\nYou can find detailed documentation for all types and functions [here](https://joniii11.github.io/node-system-stats/).\r\n\r\n**Note:** This module primarily relies on the built-in `os` module, with some platform-specific commands for enhanced features, ensuring compatibility across all operating systems where Node.js runs.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install node-system-stats\r\n```\r\n\r\n## Modular Structure & Dual Module Support\r\n\r\nNode-System-Stats v2.0.0 now supports both ES Modules and CommonJS formats. You can import the library using either style:\r\n\r\n### ES Modules (ESM)\r\n\r\n```js\r\n// Import everything\r\nimport * as systemStats from 'node-system-stats';\r\n\r\n// Or import specific features\r\nimport { usagePercent, totalCores } from 'node-system-stats';\r\nimport { getDiskInfo } from 'node-system-stats/disk';\r\nimport { NetworkMonitor } from 'node-system-stats/network';\r\nimport { getTopProcesses } from 'node-system-stats/process';\r\nimport { SystemMonitor } from 'node-system-stats/monitor';\r\n```\r\n\r\n### CommonJS (CJS)\r\n\r\n```js\r\n// Import everything\r\nconst systemStats = require('node-system-stats');\r\n\r\n// Or destructure specific features\r\nconst { usagePercent, totalCores } = require('node-system-stats');\r\nconst { getDiskInfo } = require('node-system-stats/disk');\r\nconst { NetworkMonitor } = require('node-system-stats/network');\r\nconst { getTopProcesses } = require('node-system-stats/process');\r\nconst { SystemMonitor } = require('node-system-stats/monitor');\r\n```\r\n\r\nThe library is organized into logical modules for better code organization:\r\n\r\n- `cpu` - CPU-related functionality\r\n- `memory` - Memory-related functions\r\n- `disk` - File system and disk usage\r\n- `network` - Network interfaces and traffic monitoring\r\n- `process` - Process information and monitoring\r\n- `battery` - Battery status (if available)\r\n- `monitor` - System monitoring utilities\r\n\r\n## Basic CPU and Memory Examples\r\n\r\n### CPU Usage\r\n\r\n```js\r\n// TypeScript: import { usagePercent } from \"node-system-stats\";\r\nconst { usagePercent } = require(\"node-system-stats\");\r\n\r\nasync function checkCpu() {\r\n  let result = { percent: 0 };\r\n\r\n  try {\r\n    result = await usagePercent();\r\n    console.log(`CPU usage: ${result.percent}%, measured over ${result.seconds} seconds`);\r\n    \r\n    // Get specific core usage (core 0)\r\n    const core0Usage = await usagePercent({ coreIndex: 0, sampleMs: 2000 });\r\n    console.log(`Core 0 usage: ${core0Usage.percent}%`);\r\n  } catch (err) {\r\n    console.error(err);\r\n  }\r\n}\r\n\r\ncheckCpu();\r\n```\r\n\r\n### CPU Information\r\n\r\n```js\r\n// TypeScript: import { totalCores, cpuModel, avgClockMHz, clockMHz } from \"node-system-stats\";\r\nconst { totalCores, cpuModel, avgClockMHz, clockMHz } = require(\"node-system-stats\");\r\n\r\n// Get total number of cores\r\nconsole.log(`Total cores: ${totalCores}`); // Output: 8 (includes hyper-threaded cores)\r\nconsole.log(`Physical cores: ${totalCores / 2}`); // Output: 4 (on systems with hyper-threading)\r\n\r\n// Get CPU model name\r\nconsole.log(`CPU model: ${cpuModel}`);\r\n\r\n// Get average clock speed of all cores\r\nconsole.log(`Average clock speed: ${avgClockMHz()} MHz`);\r\n\r\n// Get individual core clock speeds\r\nconst allSpeeds = clockMHz();\r\nconsole.log(\"All core speeds:\", allSpeeds);\r\n\r\n// Get specific core speed\r\nconst core0Speed = clockMHz(0);\r\nconsole.log(`Core 0 speed: ${core0Speed} MHz`);\r\n```\r\n\r\n### Memory Usage\r\n\r\n```js\r\n// TypeScript: import { showMemoryUsage, showTotalMemory, showFreeMemory } from \"node-system-stats\";\r\nconst { showMemoryUsage, showTotalMemory, showFreeMemory } = require(\"node-system-stats\");\r\n\r\n// Get detailed memory usage\r\nconst memUsage = showMemoryUsage();\r\nconsole.log(\"Memory usage:\", memUsage);\r\n// Output: { rss: 35.06, heapTotal: 7.34, heapUsed: 6.08, external: 0.88, arrayBuffers: 0.11 }\r\n\r\n// Get total system memory (in MB by default)\r\nconsole.log(`Total system memory: ${showTotalMemory()} MB`);\r\n// Or in GB\r\nconsole.log(`Total system memory: ${showTotalMemory(true)} GB`);\r\n\r\n// Get free system memory\r\nconsole.log(`Free memory: ${showFreeMemory()} MB`);\r\nconsole.log(`Free memory: ${showFreeMemory(true)} GB`);\r\n```\r\n\r\n## New Features in v2.0.0\r\n\r\n### Disk Usage Information\r\n\r\n```js\r\n// TypeScript: import { getDiskInfo, formatBytes } from \"node-system-stats\";\r\nconst { getDiskInfo, formatBytes } = require(\"node-system-stats\");\r\n\r\nasync function checkDisks() {\r\n  try {\r\n    // Get all disks\r\n    const allDisks = await getDiskInfo();\r\n    console.log(\"All disks:\", allDisks);\r\n    \r\n    // Format disk size for better readability\r\n    allDisks.forEach(disk => {\r\n      console.log(`Disk ${disk.filesystem}:`);\r\n      console.log(`  Total: ${formatBytes(disk.size)}`);\r\n      console.log(`  Used: ${formatBytes(disk.used)} (${disk.percentUsed}%)`);\r\n      console.log(`  Available: ${formatBytes(disk.available)}`);\r\n    });\r\n    \r\n    // Check specific path\r\n    const specificDisk = await getDiskInfo(\"C:\\\\Users\");\r\n    console.log(\"Specific path disk info:\", specificDisk);\r\n  } catch (err) {\r\n    console.error(err);\r\n  }\r\n}\r\n\r\ncheckDisks();\r\n```\r\n\r\n### Network Information\r\n\r\n```js\r\n// TypeScript: import { getNetworkInterfaces, NetworkMonitor } from \"node-system-stats\";\r\nconst { getNetworkInterfaces, NetworkMonitor } = require(\"node-system-stats\");\r\n\r\n// Get static network interface information\r\nconst interfaces = getNetworkInterfaces();\r\nconsole.log(\"Network interfaces:\", interfaces);\r\n\r\n// Monitor network traffic in real-time\r\nconst networkMonitor = new NetworkMonitor(1000); // Update every second\r\n\r\nnetworkMonitor.on('data', (trafficData) => {\r\n  trafficData.forEach(iface => {\r\n    console.log(`Interface: ${iface.interface}`);\r\n    console.log(`  Download: ${formatBytes(iface.bytesReceivedPerSec)}/s`);\r\n    console.log(`  Upload: ${formatBytes(iface.bytesSentPerSec)}/s`);\r\n  });\r\n});\r\n\r\nnetworkMonitor.start();\r\n\r\n// Stop monitoring after 30 seconds\r\nsetTimeout(() => networkMonitor.stop(), 30000);\r\n```\r\n\r\n### CPU Temperature & Battery Information\r\n\r\n```js\r\n// TypeScript: import { getCpuTemperature, getBatteryInfo } from \"node-system-stats\";\r\nconst { getCpuTemperature, getBatteryInfo } = require(\"node-system-stats\");\r\n\r\nasync function checkHardwareStatus() {\r\n  try {\r\n    // Get CPU temperature (if available)\r\n    const temp = await getCpuTemperature();\r\n    if (temp) {\r\n      console.log(`CPU temperature: ${temp.main}°C`);\r\n      console.log(`Individual cores: ${temp.cores.join('°C, ')}°C`);\r\n    } else {\r\n      console.log(\"CPU temperature information not available\");\r\n    }\r\n    \r\n    // Get battery information (if available)\r\n    const battery = await getBatteryInfo();\r\n    if (battery.hasBattery) {\r\n      console.log(`Battery level: ${battery.percent}%`);\r\n      console.log(`Charging: ${battery.isCharging ? 'Yes' : 'No'}`);\r\n      if (battery.timeRemaining) {\r\n        console.log(`Time remaining: ${Math.floor(battery.timeRemaining / 60)}h ${battery.timeRemaining % 60}m`);\r\n      }\r\n    } else {\r\n      console.log(\"No battery detected\");\r\n    }\r\n  } catch (err) {\r\n    console.error(err);\r\n  }\r\n}\r\n\r\ncheckHardwareStatus();\r\n```\r\n\r\n### Process Monitoring\r\n\r\n```js\r\n// TypeScript: import { getTopProcesses } from \"node-system-stats\";\r\nconst { getTopProcesses } = require(\"node-system-stats\");\r\n\r\nasync function monitorProcesses() {\r\n  try {\r\n    // Get top 5 CPU-intensive processes\r\n    const cpuProcesses = await getTopProcesses(5, 'cpu');\r\n    console.log(\"Top CPU processes:\", cpuProcesses);\r\n    \r\n    // Get top 5 memory-intensive processes\r\n    const memProcesses = await getTopProcesses(5, 'memory');\r\n    console.log(\"Top memory processes:\", memProcesses);\r\n    \r\n    // Display formatted process information\r\n    console.log(\"Top CPU-intensive processes:\");\r\n    cpuProcesses.forEach(proc => {\r\n      console.log(`${proc.name} (PID ${proc.pid}): CPU ${proc.cpu}%, Memory ${formatBytes(proc.memory)}`);\r\n    });\r\n  } catch (err) {\r\n    console.error(err);\r\n  }\r\n}\r\n\r\nmonitorProcesses();\r\n```\r\n\r\n### Complete System Monitoring\r\n\r\n```js\r\n// TypeScript: import { SystemMonitor, formatBytes } from \"node-system-stats\";\r\nconst { SystemMonitor, formatBytes } = require(\"node-system-stats\");\r\n\r\n// Create a system monitor that updates every 2 seconds and keeps 30 data points\r\nconst monitor = new SystemMonitor({ \r\n  interval: 2000, \r\n  maxHistory: 30 \r\n});\r\n\r\n// Listen for new data\r\nmonitor.on('data', (snapshot) => {\r\n  console.clear(); // Clear console to create a live dashboard effect\r\n  \r\n  console.log(`=== System Monitor ===`);\r\n  console.log(`Time: ${new Date(snapshot.timestamp).toLocaleTimeString()}`);\r\n  console.log(`\\nCPU: ${snapshot.cpu.usage.toFixed(1)}%`);\r\n  console.log(`Load average: ${snapshot.cpu.loadAverage.oneMinute.toFixed(2)}`);\r\n  \r\n  if (snapshot.cpu.temperature) {\r\n    console.log(`CPU Temperature: ${snapshot.cpu.temperature.main}°C`);\r\n  }\r\n  \r\n  console.log(`\\nMemory:`);\r\n  console.log(`  Used: ${formatBytes(snapshot.memory.used)} / ${formatBytes(snapshot.memory.total)}`);\r\n  console.log(`  Free: ${formatBytes(snapshot.memory.free)}`);\r\n  console.log(`  Usage: ${snapshot.memory.percentUsed.toFixed(1)}%`);\r\n  \r\n  if (snapshot.disks) {\r\n    console.log(`\\nDisk Usage:`);\r\n    snapshot.disks.forEach(disk => {\r\n      console.log(`  ${disk.filesystem}: ${disk.percentUsed}% used`);\r\n    });\r\n  }\r\n  \r\n  if (snapshot.battery && snapshot.battery.hasBattery) {\r\n    console.log(`\\nBattery: ${snapshot.battery.percent}% ${snapshot.battery.isCharging ? '(charging)' : ''}`);\r\n  }\r\n  \r\n  if (snapshot.processes) {\r\n    console.log(`\\nTop Processes:`);\r\n    snapshot.processes.slice(0, 3).forEach(proc => {\r\n      console.log(`  ${proc.name}: CPU ${proc.cpu.toFixed(1)}%, Mem ${formatBytes(proc.memory)}`);\r\n    });\r\n  }\r\n});\r\n\r\n// Start monitoring with process information collection\r\nmonitor.start(true);\r\n\r\n// Get statistics after running for a while\r\nsetTimeout(() => {\r\n  const cpuStats = monitor.getCpuStats();\r\n  const memoryStats = monitor.getMemoryStats();\r\n  \r\n  console.log(\"\\n=== Statistics ===\");\r\n  console.log(`CPU Usage: Min ${cpuStats.min}%, Max ${cpuStats.max}%, Avg ${cpuStats.avg}%`);\r\n  console.log(`Memory Usage: Min ${memoryStats.percentUsed.min}%, Max ${memoryStats.percentUsed.max}%, Avg ${memoryStats.percentUsed.avg}%`);\r\n  \r\n  // Stop monitoring after 60 seconds\r\n  setTimeout(() => monitor.stop(), 30000);\r\n}, 30000);\r\n```\r\n\r\n## API Overview\r\n\r\nThis library provides the following main categories of functionality:\r\n\r\n1. **CPU Information**\r\n   - `usagePercent()` - Get CPU usage percentage\r\n   - `totalCores` - Get total number of CPU cores\r\n   - `cpuModel` - Get CPU model name\r\n   - `clockMHz()` - Get CPU clock speeds\r\n   - `avgClockMHz()` - Get average clock speed\r\n   - `getCpuTemperature()` - Get CPU temperature information\r\n\r\n2. **Memory Information**\r\n   - `showMemoryUsage()` - Get detailed memory usage\r\n   - `showTotalMemory()` - Get total system memory\r\n   - `showFreeMemory()` - Get available system memory\r\n\r\n3. **Disk Information**\r\n   - `getDiskInfo()` - Get disk usage information\r\n   - `formatBytes()` - Format byte values to human-readable strings\r\n\r\n4. **Network Information**\r\n   - `getNetworkInterfaces()` - Get network interface details\r\n   - `getLoadAverage()` - Get system load averages\r\n   - `NetworkMonitor` - Monitor network traffic in real-time\r\n\r\n5. **Battery Information**\r\n   - `getBatteryInfo()` - Get battery status information\r\n\r\n6. **Process Information**\r\n   - `getTopProcesses()` - Get information about top resource-consuming processes\r\n\r\n7. **System Monitoring**\r\n   - `SystemMonitor` - Complete system monitoring with history tracking\r\n   - `SystemInfoMonitor` - Comprehensive monitoring that combines all metrics\r\n\r\nSee the examples directory for complete examples of using each module.\r\n\r\n## Platform Compatibility\r\n\r\nWhile most functions work across all platforms (Windows, macOS, Linux), some advanced features like CPU temperature and battery information may have varying levels of detail depending on the operating system.\r\n\r\n## Contributing\r\n\r\nIf you wish to contribute to the Node-System-Stats codebase or documentation, feel free to fork the repository and submit a pull request. We use ESLint to enforce a consistent coding style, so having that set up in your editor of choice is a great boon to your development process.\r\n\r\n## License\r\n\r\nMIT\r\n\r\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Math.clz32\r\n[actions-url]: https://github.com/Joniii11/node-system-stats/actions","readmeFilename":"readme.md"}