Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysystem-info

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysystem-info - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

7

package.json
{
"name": "mysystem-info",
"version": "0.0.7",
"description": "Get your Linux or Windows System Info.",
"version": "0.0.8",
"description": "Get your Linux Distro or Windows System Info.",
"main": "system.js",

@@ -10,3 +10,3 @@ "scripts": {

"bin": {
"mysysinfo": "system.js"
"mysysinfo": "./system.js"
},

@@ -31,2 +31,3 @@ "repository": {

"dependencies": {
"chalk": "^2.4.2",
"moment": "^2.24.0",

@@ -33,0 +34,0 @@ "ora": "^4.0.2",

@@ -1,6 +0,6 @@

# MY System INFO 🖥
# My System INFO 🖥
> Get your Linux or Windows System Info 🗃
> Get your Linux Distro or Windows System Info 🗃
[![dependencies Status](https://david-dm.org/mskian/sys-info/status.png)](https://david-dm.org/mskian/sys-info) [![Build Status](https://travis-ci.org/mskian/sys-info.svg?branch=master)](https://travis-ci.org/mskian/sys-info)
[![dependencies Status](https://david-dm.org/mskian/sys-info/status.png)](https://david-dm.org/mskian/sys-info) [![Build Status](https://travis-ci.org/mskian/sys-info.svg?branch=master)](https://travis-ci.org/mskian/sys-info) [![Github Workflow](https://github.com//mskian/sys-info/workflows/sys-info-test/badge.svg)](https://github.com/mskian/sys-info/actions)

@@ -108,4 +108,10 @@ ![System Info](https://raw.githubusercontent.com/mskian/sys-info/master/screenshot.png)

**v0.0.8**
- Add Github Workflow Test
- Bring back Text color on Terminal
- Windows CMD Stucks After Fetching the System info Output (I due some npm module issues)
## ☑ License
MIT

@@ -5,3 +5,4 @@ #!/usr/bin/env node

const ora = require('ora');
var moment = require('moment');
const chalk = require('chalk');
const moment = require('moment');

@@ -21,2 +22,3 @@ // JavaScript To Convert Bytes To MB, KB, Etc - https://gist.github.com/lanqy/5193417

text: 'Fetching your System Data',
spinner: 'hamburger'
});

@@ -44,40 +46,44 @@

spinner.stop();
console.log('Platform:' + sysos.platform);
console.log('Distro:' + sysos.distro);
console.log('\n');
console.log(chalk.blueBright('---------------------------'));
console.log(chalk.cyanBright('Platform:' + sysos.platform));
console.log(chalk.cyanBright('Distro:' + sysos.distro));
if (sysos.codename == 0) {
console.log('CODE: n/a');
console.log(chalk.cyanBright('CODE: n/a'));
} else {
console.log('CODE:' + sysos.codename);
console.log(chalk.cyanBright('CODE:' + sysos.codename));
}
console.log('Version:' + sysos.release)
console.log('Kernel:' + sysos.kernel);
console.log(chalk.cyanBright('Version:' + sysos.release));
console.log(chalk.cyanBright('Kernel:' + sysos.kernel));
if (sysos.build == 0) {
console.log('Build: n/a');
console.log(chalk.cyanBright('Build: n/a'));
} else {
console.log('Build:' + sysos.build);
console.log(chalk.cyanBright('Build:' + sysos.build));
}
console.log('Architecture:' + sysos.arch);
console.log(chalk.cyanBright('Architecture:' + sysos.arch));
console.log(chalk.blueBright('---------------------------'));
console.log(chalk.magentaBright('Brand:' + syscpu.brand));
console.log(chalk.magentaBright('Manufacturer:' + syscpu.manufacturer));
console.log(chalk.magentaBright('Cores:' + syscpu.cores));
console.log(chalk.magentaBright('Processors:' + syscpu.processors));
console.log(chalk.blueBright('---------------------------'));
console.log(chalk.yellowBright('Total Memory:' + (bytesToSize(sysmem.total))));
console.log(chalk.yellowBright('Free Memory:' + (bytesToSize(sysmem.free))));
console.log(chalk.yellowBright('Used Memory:' + (bytesToSize(sysmem.used))));
console.log(chalk.yellowBright('Active Memory:' + (bytesToSize(sysmem.active))));
console.log(chalk.yellowBright('Available Memory:' + (bytesToSize(sysmem.available))));
console.log(chalk.yellowBright('Total Swap Memory:' + (bytesToSize(sysmem.swaptotal))));
console.log(chalk.yellowBright('Total Swap Memory Used:' + (bytesToSize(sysmem.swapused))));
console.log(chalk.yellowBright('Free Swap Memory:' + (bytesToSize(sysmem.swapfree))));
console.log(chalk.blueBright('---------------------------'));
console.log(chalk.whiteBright('Disk Size:' + (bytesToSize(sysdisk[0].size))));
console.log(chalk.whiteBright('Disk used:' + (bytesToSize(sysdisk[0].used))));
console.log(chalk.whiteBright('Disk Usage:' + sysdisk[0].use + '%'));
console.log(chalk.whiteBright('Location:' + sysdisk[0].fs));
console.log(chalk.blueBright('---------------------------'));
console.log(chalk.greenBright('Time Zone:' + systime.timezone));
console.log(chalk.greenBright('Time Zone Name:' + systime.timezoneName));
console.log(chalk.greenBright('Current Time:' + (moment(systime.current).format('LLLL'))));
console.log(chalk.blueBright('---------------------------'));
console.log('\n');
console.log('Brand:' + syscpu.brand);
console.log('Manufacturer:' + syscpu.manufacturer);
console.log('Cores:' + syscpu.cores);
console.log('Processors:' + syscpu.processors);
console.log('\n');
console.log('Total Memory:' + (bytesToSize(sysmem.total)));
console.log('Free Memory:' + (bytesToSize(sysmem.free)));
console.log('Used Memory:' + (bytesToSize(sysmem.used)));
console.log('Active Memory:' + (bytesToSize(sysmem.active)));
console.log('Available Memory:' + (bytesToSize(sysmem.available)));
console.log('Total Swap Memory:' + (bytesToSize(sysmem.swaptotal)));
console.log('Total Swap Memory Used:' + (bytesToSize(sysmem.swapused)));
console.log('Free Swap Memory:' + (bytesToSize(sysmem.swapfree)));
console.log('\n');
console.log('Disk Size:' + (bytesToSize(sysdisk[0].size)));
console.log('Disk used:' + (bytesToSize(sysdisk[0].used)));
console.log('Disk Usage:' + sysdisk[0].use + '%');
console.log('Location:' + sysdisk[0].fs);
console.log('\n');
console.log('Time Zone:' + systime.timezone);
console.log('Time Zone Name:' + systime.timezoneName);
console.log('Current Time:' + (moment(systime.current).format('LLLL')));

@@ -89,2 +95,3 @@ } catch (e) {

}
go();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc