myinfo

1.1.1 • Public • Published

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.

Package Sidebar

Install

npm i myinfo

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

14.2 kB

Total Files

14

Last publish

Collaborators

  • aethera