summaryrefslogtreecommitdiff
path: root/node_modules/systeminformation/lib/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/systeminformation/lib/cli.js')
-rwxr-xr-xnode_modules/systeminformation/lib/cli.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/systeminformation/lib/cli.js b/node_modules/systeminformation/lib/cli.js
new file mode 100755
index 0000000..2ee3346
--- /dev/null
+++ b/node_modules/systeminformation/lib/cli.js
@@ -0,0 +1,31 @@
+#!/usr/bin/env node
+
+'use strict';
+// @ts-check
+// ==================================================================================
+// cli.js
+// ----------------------------------------------------------------------------------
+// Description: System Information - library
+// for Node.js
+// Copyright: (c) 2014 - 2023
+// Author: Sebastian Hildebrandt
+// ----------------------------------------------------------------------------------
+// License: MIT
+// ==================================================================================
+
+// ----------------------------------------------------------------------------------
+// Dependencies
+// ----------------------------------------------------------------------------------
+const si = require('./index');
+
+// ----------------------------------------------------------------------------------
+// Main
+// ----------------------------------------------------------------------------------
+(function () {
+ si.getStaticData().then(
+ ((data) => {
+ data.time = si.time();
+ console.log(JSON.stringify(data, null, 2));
+ }
+ ));
+})();