Page 99 - Nodejs 교과서 개정2판
P. 99

֢٘ ղ੢ ݽٕ ࢎਊೞӝ







         ֢٘ח ਢ ࠳ۄ਋੷ীࢲ ࢎਊغח ੗߄झ௼݀౟ࠁ׮ ؊ ݆਷ ӝמਸ ઁҕ೤פ׮  ਍৔୓ઁ ੿ࠁীب ੽Ӕೡ ࣻ
         ੓Ҋ  ௿ۄ੉঱౟о ਃ୒ೠ ઱ࣗী ؀ೠ ੿ࠁب оઉৢ ࣻ ੓णפ׮  ֢٘ীࢲ ੉۞ೠ ӝמਸ ೞח ݽٕਸ ઁҕ

         ೤פ׮

         ֢٘੄ ݽٕ਷ ֢٘ ߡ੹݃׮ ର੉о ੓णפ׮  ٮۄࢲ ߡ੹җ ࢚ҙহ੉ উ੿੸੉Ҋ ਬਊೠ ӝמਸ ૑צ ݽٕ ਤ

         ઱۽ ࢸݺೞѷणפ׮  ҕध ޙࢲী ݽف ա৬ ੓ח ղਊ੉૑݅ ઺ਃೞҊ ੗઱ ࢎਊೞח Ѫٜ݅ ୶۷णפ׮

          
          
               PT

         ݢ੷ PT ݽٕੑפ׮  ਢ ࠳ۄ਋੷ী ࢎਊغח ੗߄झ௼݀౟ח ਍৔୓ઁ੄ ੿ࠁܳ оઉৢ ࣻ হ૑݅  ֢٘ח PT

         ݽٕী ੿ࠁо ׸ѹ ੓য ੿ࠁܳ оઉৢ ࣻ ੓णפ׮

         PT ݽٕ੄ ؀಴੸ੋ ݫࢲ٘ܳ ঌইࠇद׮

          os.js

           const	os	=	require('os');


           console.log('운영체제	정보---------------------------------');
           console.log('os.arch():',	os.arch());
           console.log('os.platform():',	os.platform());
           console.log('os.type():',	os.type());
           console.log('os.uptime():',	os.uptime());
           console.log('os.hostname():',	os.hostname());
           console.log('os.release():',	os.release());


           console.log('경로------------------------------------------');
           console.log('os.homedir():',	os.homedir());
           console.log('os.tmpdir():',	os.tmpdir());


           console.log('cpu	정보--------------------------------------');
           console.log('os.cpus():',	os.cpus());
           console.log('os.cpus().length:',	os.cpus().length);


           console.log('메모리	정보-----------------------------------');
           console.log('os.freemem():',	os.freemem());
           console.log('os.totalmem():',	os.totalmem());




          콘솔
   94   95   96   97   98   99   100   101   102   103   104