UNPKG

@jedithepro/system-info

Version:

System and OS information library for Node.js, and SystemInfo API.

27 lines (23 loc) 894 B
#!/usr/bin/env node 'use strict'; // @ts-check // ================================================================================== // cli.js // ---------------------------------------------------------------------------------- // License: MIT // ================================================================================== // ---------------------------------------------------------------------------------- // Dependencies // ---------------------------------------------------------------------------------- const si = require('./index'); // ---------------------------------------------------------------------------------- // Main // ---------------------------------------------------------------------------------- (function() { si.getStaticData().then( (data => { data.time = si.time(); console.log(JSON.stringify(data, null, 2)); } )); })();