View the computer information, including cpu, memory, ipv4, ipv6 etc.
npm install viewcom -g
run the command:
$ viewcom
{
cpu: 'Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz',
memory: '8G',
memoryUseRatio: '13%',
macAddress: 'xx',
ipv6: 'xx',
ipv4: 'xx',
platform: 'win32',
arch: 'x64',
hostname: 'xx',
username: 'xx'
}
npm install viewcom -S
const viewcom = requie('viewcom');
console.log('ipv4:', viewcom.ipv4);