myinfo
v1.1.1
Published
Displays information about your system, device and network.
Downloads
16
Maintainers
Readme
MyInfo
Displays information about your system, device and network.
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.