Skip to content

GsLKS/MyInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyInfo

Displays information about your system, device and network.

CHANGELOG

Lib Name Version Stars

Command Usage (INSTALLING):

NPM

npm install -g myinfo

Command Usage (Using)

Use MyInfo easily with just a command:

myinfo

WARNING: If your MyInfo is broken, try running the command down below:

mifix

Usage (API/Coding)

You can also use MyInfo as a librairy normaly.

Importing 'MyInfo'

// require myinfo
const mi = require("myinfo");

Basic Script

  • This is similar to using the normal command.
async function MyInfoNormal() {
    // normal output
  try {
    // do something...
    const Mi = await mi({ output: "normal" });
    return await Mi;
  } catch (error) {
    return;
  }
}

MyInfoNormal();
  • Using json allows a easy integration to your apps
async function MyInfoJson() {
  // json usage
  try {
    const Mi = await mi({ output: "json" });
    // do somenthing
    // example
    console.log(JSON.parse(Mi));
    // example: console.log(JSON.parse(Mi).ip); 
    // shows ip
  } catch (error) {
    return;
  }
}

MyInfoJson();

Info

'MyInfo' displays system information, allowing general use of the informations.

Releases

No releases published

Packages

No packages published