bare-process
Advanced tools
+2
-0
@@ -61,2 +61,4 @@ import EventEmitter, { EventMap } from 'bare-events' | ||
| uptime(): number | ||
| cpuUsage: typeof cpuUsage | ||
@@ -63,0 +65,0 @@ threadCpuUsage: typeof threadCpuUsage |
+6
-0
@@ -18,2 +18,4 @@ /* global Bare */ | ||
| this._startTime = hrtime.bigint() | ||
| EventEmitter.forward(Bare, this, [ | ||
@@ -147,2 +149,6 @@ 'uncaughtException', | ||
| uptime() { | ||
| return Number(hrtime.bigint() - this._startTime) / 1e9 | ||
| } | ||
| cpuUsage(previous) { | ||
@@ -149,0 +155,0 @@ return os.cpuUsage(previous) |
+2
-2
| { | ||
| "name": "bare-process", | ||
| "version": "4.1.2", | ||
| "version": "4.2.0", | ||
| "description": "Node.js-compatible process control for Bare", | ||
@@ -23,3 +23,3 @@ "exports": { | ||
| "scripts": { | ||
| "test": "prettier . --check" | ||
| "test": "prettier . --check && bare test.js" | ||
| }, | ||
@@ -26,0 +26,0 @@ "repository": { |
17605
0.87%220
2.33%