added npx copmpatibility

This commit is contained in:
Sebastian Hildebrandt 2020-01-27 18:45:03 +01:00
parent 70d9b02964
commit 1cc8300f73
5 changed files with 35 additions and 2 deletions

View File

@ -84,6 +84,7 @@ si.cpu()
(last 7 major and minor version releases)
- Version 4.21.0: added npx copmpatibility
- Version 4.20.0: `battery()` added designcapacity, voltage, unit
- Version 4.19.0: `osInfo()` added uefi (OS uses UEFI during startup)
- Version 4.18.0: `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.21.0</th>
<td>2020-01-27</td>
<td>added <span class="code">npx</span> compatibility</td>
</tr>
<tr>
<th scope="row">4.20.1</th>
<td>2020-01-26</td>

View File

@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.20.1</span></div>
<div class="version">Current Version: <span id="version">4.21.0</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
@ -206,7 +206,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">240</div>
<div class="numbers">242</div>
<div class="title">Dependends</div>
</div>
</div>

26
lib/cli.js Normal file
View File

@ -0,0 +1,26 @@
#!/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));
}
));
})();

View File

@ -6,6 +6,7 @@
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
"homepage": "https://github.com/sebhildebrandt/systeminformation",
"main": "./lib/index.js",
"bin": "./lib/cli.js",
"types": "./lib/index.d.ts",
"scripts": {
"clean": "rimraf dist",