Modern Full-Stack Development



Download 5,64 Mb.
Pdf ko'rish
bet35/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   31   32   33   34   35   36   37   38   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 OS  (os)
The OS module provides a set of operating system–level utility functions that allow your 
code to be aware of the environment it’s running in and make any necessary allowances 
for it. Some of what it offers include the following:
•  os.EOL – Provides you the end-of-line character the operating system 
uses
•  os.cpus() – Returns an object array where each object gives you 
information about the CPU(s) in the system including information 
like their model, speed, and times (e.g., how long the CPU has spent 
in user mode)
•  os.freemem() – Returns an integer value that is the number of free 
system memory available in bytes
•  os.homedir() – Returns a path to the current home directory of the 
user running the process
•  os.hostname() – Returns the machine’s host name
•  os.tempdir() – Returns a path to the default system temporary 
directory
You’ll also find an os.constants property that is an object with several keys, things 
like SIGHUP, SIGFPE, SIGCHILD, and SIGSTOP. These are commonly used OS-specific 
constants for things like error codes and, as in these examples, process signals. These 
will, of course, change from system to system to at least some extent, but it’s good to 
know such a collection of information like this exists and is made available to you thanks 
to the OS module!
Chapter 2   a Few More words: advanCed node and npM


35

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   31   32   33   34   35   36   37   38   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish