diff options
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)); + } + )); +})(); |