Displays information about your system, device and network.
NPM
npm install -g myinfo
Use MyInfo
easily with just a command:
myinfo
WARNING: If your MyInfo
is broken, try running the command down below:
mifix
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();
'MyInfo'
displays system information, allowing general use of the informations.