diff --git a/CHANGELOG.md b/CHANGELOG.md index d225255..a6ba7c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.0.7 | 2020-01-29 | `fsSize()` available fixed windows and typescript typings | | 5.0.6 | 2020-01-28 | `osinfo()` added hypervisor (win only) | | 5.0.5 | 2020-01-27 | `networkInterfaces()` type detection improved (win) | | 5.0.4 | 2020-01-27 | `cpu()` improved manufacturer decoding (linux) | diff --git a/README.md b/README.md index 99e8f52..4bef4b9 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,13 @@ This is amazing. Started as a small project just for myself, it now has > 10,000 The new Version 5 is here - I spend several weeks finalizing this new version. Any support is highly appreciated - [Buy me a coffee](https://www.buymeacoffee.com/systeminfo) -This next major version release 5.0 comes with several optimizations and changes (some of them are breaking changes!): +This next major version release 5.0 comes with new functionality and several improvements and changes (some of them are breaking changes!): - added bluetooth: get detailed bluetooth device information - added usb: get detailed usb controller and device information - added printer: get information from detected printers - added audio: get detailed audio device information -- better uuid function to get unique hardware and os UUIDs +- better uuid function to get unique hardware and OS UUIDs - better/extended cpu info detection - better/extended system info detection - Apple Silicon M1 support @@ -50,7 +50,7 @@ This next major version release 5.0 comes with several optimizations and changes - systeminformation website updated and extendet with full documentation and examples [systeminformation.io][systeminformation-url] - lot of minor improvements -Breaking Changes in version 5: you will see several breaking changes for the sake of a more consistent API interface and to be future proof. Read the [detailed Version 5 changes][changes5-url]. +Breaking Changes in version 5: you will see several breaking changes for the sake of a more consistent API interface and to be future proof. Read the [detailed version 5 changes][changes5-url]. I did a lot of testing on different platforms and machines but of course there might be some issues that I am not aware of. I would be happy if you inform me when you discover any issues. Issues can be [opened here][new-issue]. @@ -73,7 +73,7 @@ $ npm install systeminformation --save #### Still need Version 4? -If you need the lates version 4 release of the package (for compatibility reasons), you can install version 4 (latest release) with +If you need version 4 (for compatibility reasons), you can install version 4 (latest release) like this ```bash $ npm install systeminformation@4 —save diff --git a/docs/filesystem.html b/docs/filesystem.html index 5c5a7e1..0dea89d 100644 --- a/docs/filesystem.html +++ b/docs/filesystem.html @@ -630,6 +630,16 @@ setInterval(function() { used in bytes + + + [0].available + X + X + X + X + + available in bytes + [0].use @@ -663,6 +673,7 @@ si.fsSize().then(data => console.log(data)); type: 'ext4', size: 972577361920, used: 59142635520, + available: 913434726400, use: 6.08, mount: '/' }, diff --git a/docs/history.html b/docs/history.html index a023076..1f18959 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.0.7 + 2020-01-29 + fsSize() available fixed windows and typescript typings + 5.0.6 2020-01-28 diff --git a/docs/index.html b/docs/index.html index 858a9ff..230e283 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.0.6
+
New Version: 5.0.7
@@ -201,7 +201,7 @@
-
13,086
+
13,096
Lines of code
diff --git a/lib/filesystem.js b/lib/filesystem.js index 2955803..a833ced 100755 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -128,12 +128,13 @@ function fsSize(callback) { if (line !== '') { line = line.trim().split(/\s\s+/); data.push({ - 'fs': line[0], - 'type': line[1], - 'size': parseInt(line[3]), - 'used': parseInt(line[3]) - parseInt(line[2]), - 'use': parseFloat((100.0 * (parseInt(line[3]) - parseInt(line[2]))) / parseInt(line[3])), - 'mount': line[0] + fs: line[0], + type: line[1], + size: parseInt(line[3], 10), + used: parseInt(line[3], 10) - parseInt(line[2], 10), + available: parseInt(line[2], 10), + use: parseFloat((100.0 * (parseInt(line[3]) - parseInt(line[2]))) / parseInt(line[3])), + mount: line[0] }); } }); diff --git a/lib/index.d.ts b/lib/index.d.ts index c190e6a..1f58d28 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -368,6 +368,7 @@ export namespace Systeminformation { type: string; size: number; used: number; + available: number; use: number; mount: string; }