How to get the total amount of system memory in bytes with Node.js

1 Answer

0 votes
const os = require('os');

var totalMemory = os.totalmem();

console.log(totalMemory);

     
   
/*
run:
   
34289623040
   
*/

 



answered Mar 2, 2020 by avibootz

Related questions

...