mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Node info example
This commit is contained in:
7
sample-functions/NodeInfo/main.js
Normal file
7
sample-functions/NodeInfo/main.js
Normal 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());
|
||||
});
|
Reference in New Issue
Block a user