Node info example

This commit is contained in:
Alex
2017-01-03 23:14:59 +00:00
parent f566c65db4
commit f9fd0a08b5
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,7 @@
'use strict'
let os = require('os');
const getStdin = require('get-stdin');
getStdin().then(content => {
console.log(os.platform(), os.arch(), os.cpus(), os.uptime(), os.userInfo());
});