diff options
author | Minteck <contact@minteck.org> | 2022-07-05 13:40:01 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-05 13:40:01 +0200 |
commit | b74e9708f0adcc5c80095e432e8051b01b6255d9 (patch) | |
tree | e4d2fec7ac3718f97966b10f7dc12a2b4d36d115 /node_modules/systeminformation/lib/cli.js | |
download | strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.gz strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.bz2 strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.zip |
Diffstat (limited to 'node_modules/systeminformation/lib/cli.js')
-rwxr-xr-x | node_modules/systeminformation/lib/cli.js | 31 |
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..3ac1670 --- /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 - 2022 +// 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)); + } + )); +})(); |