Modern Full-Stack Development



Download 5,64 Mb.
Pdf ko'rish
bet39/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   35   36   37   38   39   40   41   42   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 URL  (url)
In the previous section, you saw the url.parse() method used, and that’s just one thing 
the URL module offers. Some others are as follows:
•  URL – Okay, this is going to sound weird, but the URL module  
exposes the URL class, and the URL class is where a large chunk of  
the functionality of this module resides. For example, the  
url.URL.hash property returns the fragment portion of a URL  
(e.g., new url.URL("
http://mysite.com/page.html#sectionA"
).
hash will have the value #sectionA). Similarly, you can get the host (which 
will include the port, if specified), the hostname (which will not include the 
port), the username and password portion of a URL (if specified), and the 
port or protocol, in the same way, all properties of a URL instance.
•  url.pathToFileURL() and url.fileURLToPath() – Respectively, these 
methods ensure that a path is resolved absolutely and that the URL 
control characters are correctly encoded when converting into a file 
URL and that correct decoding of percent-encoded characters in a file 
URL is done while ensuring the result is a valid cross-platform path.
Chapter 2   a Few More words: advanCed node and npM


39

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   35   36   37   38   39   40   41   42   ...   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