about-system 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -21
- package/package.json +4 -4
- package/src/about-system.js +4 -4
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ npx about-system
|
|
|
27
27
|
|
|
28
28
|
A cross-platform Node.js implementation of the system info script with enhanced features, caching, and full customization support.
|
|
29
29
|
|
|
30
|
+
[NPM](https://www.npmjs.com/package/about-system-info)
|
|
31
|
+
|
|
30
32
|
## Examples
|
|
31
33
|
|
|
32
34
|

|
|
@@ -37,7 +39,7 @@ A cross-platform Node.js implementation of the system info script with enhanced
|
|
|
37
39
|
|
|
38
40
|
### Features
|
|
39
41
|
|
|
40
|
-
- **Cross-Platform**: Works on Windows, macOS,
|
|
42
|
+
- **Cross-Platform**: Works on any Linux, Windows PowerShell (most features), macOS, Android Termux
|
|
41
43
|
- **Smart Caching**: Configurable cache durations for different system info types
|
|
42
44
|
- **Customizable Output**: Control which info blocks to show and their order
|
|
43
45
|
- **Network Info**: Fetches IP, location, and ISP data from ipinfo.io
|
|
@@ -213,23 +215,3 @@ npm start
|
|
|
213
215
|
# Run with custom settings
|
|
214
216
|
npm start -- --set display.show_emojis false
|
|
215
217
|
```
|
|
216
|
-
|
|
217
|
-
### License
|
|
218
|
-
|
|
219
|
-
MIT License - see the original bash version for details.
|
|
220
|
-
|
|
221
|
-
### Contributing
|
|
222
|
-
|
|
223
|
-
1. Fork the repository
|
|
224
|
-
2. Create a feature branch
|
|
225
|
-
3. Make your changes
|
|
226
|
-
4. Test on multiple platforms
|
|
227
|
-
5. Submit a pull request
|
|
228
|
-
|
|
229
|
-
### Changelog
|
|
230
|
-
|
|
231
|
-
- **v0.0.3**: Initial Node.js implementation with cross-platform support
|
|
232
|
-
- Enhanced caching system
|
|
233
|
-
- Settings management
|
|
234
|
-
- Windows compatibility
|
|
235
|
-
- Shell integration improvements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "about-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "A Node.js script to display key system information with emojis. Cross-platform support for Windows, macOS, and Linux with customizable output and caching.",
|
|
5
5
|
"main": "src/about-system.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"system-monitoring"
|
|
41
41
|
],
|
|
42
42
|
"author": "vtempest",
|
|
43
|
-
"license": "
|
|
43
|
+
"license": "rights.institute/prosper",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/
|
|
46
|
+
"url": "https://github.com/OpenSourceAGI/StarterDOCS/tree/master/packages/about-system-info"
|
|
47
47
|
},
|
|
48
|
-
"homepage": "https://github.com/
|
|
48
|
+
"homepage": "https://github.com/OpenSourceAGI/StarterDOCS/tree/master/packages/about-system-info",
|
|
49
49
|
"files": [
|
|
50
50
|
"src/about-system.js",
|
|
51
51
|
"README.md",
|
package/src/about-system.js
CHANGED
|
@@ -974,7 +974,7 @@ const infoFunctions = {
|
|
|
974
974
|
const loads = loadavg.split(' ').slice(0, 3);
|
|
975
975
|
const color = colors[settings.colors.load_average] || colors.red;
|
|
976
976
|
const emoji = settings.display.show_emojis ? '⚖️ ' : '';
|
|
977
|
-
return `${color}${emoji}${loads.join(' ')}`;
|
|
977
|
+
return `${color}${emoji} ${loads.join(' ')}`;
|
|
978
978
|
} catch { }
|
|
979
979
|
return '';
|
|
980
980
|
},
|
|
@@ -1058,7 +1058,7 @@ const infoFunctions = {
|
|
|
1058
1058
|
if (mountPoints.length > 0) {
|
|
1059
1059
|
const color = colors[settings.colors.mount_points] || colors.gray;
|
|
1060
1060
|
const emoji = settings.display.show_emojis ? '📂 ' : '';
|
|
1061
|
-
const result = `${color}${emoji}${mountPoints.slice(0, 3).join(' ')}`;
|
|
1061
|
+
const result = `${color}${emoji} ${mountPoints.slice(0, 3).join(' ')}`;
|
|
1062
1062
|
setCachedValue(this.cache, 'mount_points', result);
|
|
1063
1063
|
return result;
|
|
1064
1064
|
}
|
|
@@ -1093,7 +1093,7 @@ const infoFunctions = {
|
|
|
1093
1093
|
if (serviceCount > 0) {
|
|
1094
1094
|
const color = colors[settings.colors.services_running] || colors.green;
|
|
1095
1095
|
const emoji = settings.display.show_emojis ? '⚙️ ' : '';
|
|
1096
|
-
const result = `${color}${emoji}${serviceCount} services`;
|
|
1096
|
+
const result = `${color}${emoji} ${serviceCount} services`;
|
|
1097
1097
|
setCachedValue(this.cache, 'services_running', result);
|
|
1098
1098
|
return result;
|
|
1099
1099
|
}
|
|
@@ -1128,7 +1128,7 @@ const infoFunctions = {
|
|
|
1128
1128
|
if (tempC > 0 && tempC < 150) { // Reasonable temperature range
|
|
1129
1129
|
const color = tempC > 70 ? colors.red : tempC > 50 ? colors.yellow : colors.green;
|
|
1130
1130
|
const emoji = settings.display.show_emojis ? '🌡️ ' : '';
|
|
1131
|
-
const result = `${color}${emoji}${tempC}°C`;
|
|
1131
|
+
const result = `${color}${emoji} ${tempC}°C`;
|
|
1132
1132
|
setCachedValue(this.cache, 'temperature', result);
|
|
1133
1133
|
return result;
|
|
1134
1134
|
}
|