Enable turning off in sample function

This commit is contained in:
Alex
2017-02-03 08:56:15 +00:00
parent ea3619330e
commit 07ee1f22d5
6 changed files with 81 additions and 26 deletions

View File

@ -11,9 +11,9 @@ getStdin().then((content) => {
console.log("Arch: " + os.arch());
console.log("CPU count: " + os.cpus().length);
console.log("Uptime: " + os.uptime())
console.log("User info: " + os.userInfo());
if (content && content.length && content.indexOf("verbose") > -1) {
console.log(os.cpus());
console.log(os.networkInterfaces());
}
});
});
});